about summary refs log tree commit diff
path: root/db/migrate/20190521003341_add_origin_to_statuses.rb
blob: 0fd8048c41c495e296dad18e90b6cd96d0e3e055 (plain) (blame)
1
2
3
4
5
6
7
class AddOriginToStatuses < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!
  def change
    add_column :statuses, :origin, :string
    add_index :statuses, :origin, unique: true, algorithm: :concurrently
  end
end