20180211015820_create_backups.rb 279 B

1234567891011
  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