Skip to content

Commit

Permalink
Fix for PG::UndefinedFunction: ERROR: function gen_random_uuid() does…
Browse files Browse the repository at this point in the history
… not exist - custom migration name to ensure it runs first, so other migrations don't fail
  • Loading branch information
dgcliff committed Oct 10, 2024
1 parent 2936070 commit ecf3c35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.8.8
2.8.9
6 changes: 6 additions & 0 deletions db/migrate/0_enable_extensions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class EnableExtensions < ActiveRecord::Migration[7.2]
def change
enable_extension 'uuid-ossp'
enable_extension 'pgcrypto'
end
end
2 changes: 2 additions & 0 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ecf3c35

Please sign in to comment.