about summary refs log tree commit diff
path: root/db/migrate/20200923000003_add_reblogs_flag_to_lists.rb
blob: bb6bcc6c2990ad27f0607725eefb2a8026ad6138 (plain) (blame)
1
2
3
4
5
6
7
8
class AddReblogsFlagToLists < ActiveRecord::Migration[5.2]
  def change
    safety_assured do
      add_column :lists, :reblogs, :boolean, default: false, null: false
      add_index :lists, :id, name: :lists_reblog_feeds, where: '(reblogs = TRUE)'
    end
  end
end