diff options
Diffstat (limited to 'db/migrate/20190509185038_add_network_index_to_statuses.rb')
-rw-r--r-- | db/migrate/20190509185038_add_network_index_to_statuses.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20190509185038_add_network_index_to_statuses.rb b/db/migrate/20190509185038_add_network_index_to_statuses.rb new file mode 100644 index 000000000..761cebfc8 --- /dev/null +++ b/db/migrate/20190509185038_add_network_index_to_statuses.rb @@ -0,0 +1,6 @@ +class AddNetworkIndexToStatuses < ActiveRecord::Migration[5.2] + disable_ddl_transaction! + def change + add_index :statuses, :network, where: :network, algorithm: :concurrently + end +end |