Skip to content

Commit 2f3169e

Browse files
committed
Manually add necessary extension to postgres
Mind that I had to manually change the `db/schema.rb` file, as the migrations for this application are broken: in 2017 we did a lot of manual migrations that doesn't exist upstream (in decidim/decidim) and that generates a problem locally and in testing where we can't run the `db:migrate` task in a new database, but we need to do the `db:schema:load` or `db:test:prepare` that loads the schema from the schema.rb file instead of running each of the migrations. Some examples of these files are: - db/migrate/20170606113833_add_index_to_accountability_results_on_external_id.decidim_accountability.rb - db/migrate/20170128100053_allow_erased_users.rb - db/migrate/20170405084212_fix_email_uniqueness_index.rb - db/migrate/20170125130555_remove_attachments_table.rb
1 parent c7d969f commit 2f3169e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

db/schema.rb

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "ltree"
1616
enable_extension "pg_trgm"
17+
enable_extension "pgcrypto"
1718
enable_extension "plpgsql"
1819

1920
create_table "active_storage_attachments", force: :cascade do |t|

0 commit comments

Comments
 (0)