20180615122121_add_autofollow_to_invites.rb 301 B

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