Skip to content

Commit

Permalink
fix: seeds in one invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
woto committed Nov 26, 2023
1 parent 2f31d83 commit 12370ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

GlobalHelper.create_elastic_indexes

# NOTE: without this invocation, we must run migrations and seeding
# in separate executions. Otherwise, it will exit with an error due to
# the cache of model's columns during migration
User.reset_column_information

User.create!(
email: '[email protected]',
password: 'password',
Expand Down

0 comments on commit 12370ba

Please sign in to comment.