20171028221157_add_reblogs_to_follows.rb 441 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. class AddReblogsToFollows < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured do
  6. add_column :follows, :show_reblogs, :boolean, default: true, null: false
  7. add_column :follow_requests, :show_reblogs, :boolean, default: true, null: false
  8. end
  9. end
  10. def down
  11. remove_column :follows, :show_reblogs
  12. remove_column :follow_requests, :show_reblogs
  13. end
  14. end