docbrown/db/migrate/20190703003817_create_backup_data_table.rb
Andy Zhao 22e76bee84 Add functionality to remove and recover identity (#3377)
* Lint some quotation marks

* Add BackupData table

* Add identity and removal functionality

* Test additional functionality

* Remove dependent destroy for backup data

* Add auth_data_dump column

* Add challenge to reserved words

* Add more shoulda matchers
2019-07-03 12:01:16 -04:00

12 lines
314 B
Ruby

class CreateBackupDataTable < ActiveRecord::Migration[5.2]
def change
create_table :backup_data do |t|
t.bigint :instance_id, null: false
t.string :instance_type, null: false
t.bigint :instance_user_id
t.jsonb :json_data, null: false
t.timestamps null: false
end
end
end