diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-05-21 01:56:21 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:51 -0500 |
commit | cbdadfb5fa8088edb4b0ec879faf58b0d8272664 (patch) | |
tree | ff97d8c88a8d13adc45f03103ca899d35b4baaa8 /db | |
parent | 62d667dbf59ec6ff20d5c3ef4442c2607f79ed50 (diff) |
add `origin` to status table to mark posts that were previously imported
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190521003341_add_origin_to_statuses.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20190521003341_add_origin_to_statuses.rb b/db/migrate/20190521003341_add_origin_to_statuses.rb new file mode 100644 index 000000000..0fd8048c4 --- /dev/null +++ b/db/migrate/20190521003341_add_origin_to_statuses.rb @@ -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 |