about summary refs log tree commit diff
path: root/db/migrate/20180211015820_create_backups.rb
blob: 4aaeed83ba7ef05286a7988ddd4ef24924b77743 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class CreateBackups < ActiveRecord::Migration[5.2]
  def change
    create_table :backups do |t|
      t.references :user, foreign_key: { on_delete: :nullify }
      t.attachment :dump
      t.boolean :processed, null: false, default: false

      t.timestamps
    end
  end
end