diff options
-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 |