logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20180211015820_create_backups.rb (279B)


  1. class CreateBackups < ActiveRecord::Migration[5.1]
  2. def change
  3. create_table :backups do |t|
  4. t.references :user, foreign_key: { on_delete: :nullify }
  5. t.attachment :dump
  6. t.boolean :processed, null: false, default: false
  7. t.timestamps
  8. end
  9. end
  10. end