16 lines
368 B
Ruby
16 lines
368 B
Ruby
class RemoveBackupData < ActiveRecord::Migration[6.0]
|
|
def up
|
|
drop_table :backup_data, if_exists: true
|
|
end
|
|
|
|
def down
|
|
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
|