1
0

20180211015820_create_backups.rb 310 B

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