From cbdadfb5fa8088edb4b0ec879faf58b0d8272664 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 21 May 2019 01:56:21 -0500 Subject: add `origin` to status table to mark posts that were previously imported --- db/migrate/20190521003341_add_origin_to_statuses.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 db/migrate/20190521003341_add_origin_to_statuses.rb (limited to 'db') 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 -- cgit