add `origin` to status table to mark posts that were previously imported
parent
62d667dbf5
commit
cbdadfb5fa
|
@ -0,0 +1,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
|
Loading…
Reference in New Issue