New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix index detection a migration to revert index change #8026

Merged
merged 1 commit into from Jul 15, 2018
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

Fix index detection a migration to revert index change

  • Loading branch information...
Akihiko Odaki
Akihiko Odaki committed Jul 15, 2018
commit 1d4fcabe0102a951bf65f65e4f6cbfb89f40991e
@@ -5,7 +5,7 @@ class RevertIndexChangeOnStatusesForApiV1AccountsAccountIdStatuses < ActiveRecor
def change
safety_assured do
add_index :statuses, [:account_id, :id, :visibility, :updated_at], order: { id: :desc }, algorithm: :concurrently, name: :index_statuses_20180106 unless index_exists?(:statuses, name: "index_statuses_20180106")
add_index :statuses, [:account_id, :id, :visibility, :updated_at], order: { id: :desc }, algorithm: :concurrently, name: :index_statuses_20180106 unless index_name_exists?(:statuses, "index_statuses_20180106")
end
# These index may not exists (see migration 20180514130000)
ProTip! Use n and p to navigate between commits in a pull request.