20190201012802_add_overwrite_to_imports.rb 311 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class AddOverwriteToImports < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured do
  6. add_column :imports, :overwrite, :boolean, default: false, null: false
  7. end
  8. end
  9. def down
  10. remove_column :imports, :overwrite, :boolean
  11. end
  12. end