mastodon/db/migrate/20190522060455_add_unlisted...

10 lines
282 B
Ruby

class AddUnlistedToTags < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
safety_assured {
add_column :tags, :unlisted, :boolean, default: false, null: false
add_index :tags, :unlisted, where: :unlisted, algorithm: :concurrently
}
end
end