20180615122121_add_autofollow_to_invites.rb 423 B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. require Rails.root.join('lib', 'mastodon', 'migration_helpers')
  3. class AddAutofollowToInvites < ActiveRecord::Migration[5.2]
  4. include Mastodon::MigrationHelpers
  5. disable_ddl_transaction!
  6. def up
  7. safety_assured do
  8. add_column_with_default :invites, :autofollow, :bool, default: false, allow_null: false
  9. end
  10. end
  11. def down
  12. remove_column :invites, :autofollow
  13. end
  14. end