Skip to content

Commit ff9e357

Browse files
committed
WIP fix pg hero issues
1 parent 12fd1f1 commit ff9e357

5 files changed

+42
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class ValidateConstraintMileageRates < ActiveRecord::Migration[7.2]
2+
def up
3+
ActiveRecord::Base.connection.execute(Arel.sql("ALTER TABLE mileage_rates VALIDATE CONSTRAINT fk_rails_3dad81992f;"))
4+
end
5+
6+
def down
7+
# cannot un-validate a constraint
8+
end
9+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class ValidateConstraintNotes < ActiveRecord::Migration[7.2]
2+
def up
3+
ActiveRecord::Base.connection.execute(Arel.sql("ALTER TABLE notes VALIDATE CONSTRAINT fk_rails_5d4a723a34;"))
4+
end
5+
6+
def down
7+
# cannot un-validate a constraint
8+
end
9+
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class ValidateConstraintPlacements < ActiveRecord::Migration[7.2]
2+
def up
3+
ActiveRecord::Base.connection.execute(Arel.sql("ALTER TABLE placements VALIDATE CONSTRAINT fk_rails_65aeeb5669;"))
4+
end
5+
6+
def down
7+
# cannot un-validate a constraint
8+
end
9+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class RemoveDuplicateIndexindexEmancipationOptionsOnEmancipationCategoryId < ActiveRecord::Migration[7.2]
2+
def change
3+
remove_index :emancipation_options, :emancipation_category_id
4+
end
5+
end
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class RemoveDuplicateIndexindexUserLanguagesOnLanguageId < ActiveRecord::Migration[7.2]
2+
def change
3+
remove_index :user_languages, :language_id
4+
end
5+
end
6+
7+
user = Volunteer.find(2449)
8+
user.update_column(:email, "charleese.casa@gmail.com")
9+
user.resend_confirmation_instructions
10+
user.update!(email: "charleese.casa@gmail.com")

0 commit comments

Comments
 (0)