diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-23 18:13:55 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-01-23 18:24:01 +0100 |
commit | 61ef81c548a0140a80281d4004ac55873d8f74d6 (patch) | |
tree | 770c251059d139243b9cb557c762648e0af55037 /db/migrate | |
parent | 4d0383d75ac606f8c9c2b8ecb0ea2dddf28213cb (diff) | |
parent | 0a120d86d28e3f2e20455f56c1656f5d5f2f4af6 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `spec/models/status_spec.rb`: Upstream added tests too close to glitch-soc-specific tests. Kept both tests.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20220105163928_remove_mentions_status_id_index.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20220105163928_remove_mentions_status_id_index.rb b/db/migrate/20220105163928_remove_mentions_status_id_index.rb new file mode 100644 index 000000000..56e903719 --- /dev/null +++ b/db/migrate/20220105163928_remove_mentions_status_id_index.rb @@ -0,0 +1,9 @@ +class RemoveMentionsStatusIdIndex < ActiveRecord::Migration[6.1] + def up + remove_index :mentions, name: :mentions_status_id_index if index_exists?(:mentions, :status_id, name: :mentions_status_id_index) + end + + def down + # As this index should not exist and is a duplicate of another index, do not re-create it + end +end |