20230605085710_add_exclusive_to_lists.rb 282 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddExclusiveToLists < ActiveRecord::Migration[6.1]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured { add_column :lists, :exclusive, :boolean, default: false, null: false }
  6. end
  7. def down
  8. remove_column :lists, :exclusive
  9. end
  10. end