Skip to content

Commit

Permalink
Ensure bin/setup works
Browse files Browse the repository at this point in the history
Closes #1224

It's unclear why we need to run migrations, since we were originally
calling [db:prepare][dbp] which does the following:

> If the database exists but the tables have not been created, the
command will load the schema, run any pending migrations, dump the
updated schema, and finally load the seed data. See the Seeding Data
documentation for more details.

However, I found that calling `db:migrate` in the application template
worked.

[dbp]: https://guides.rubyonrails.org/active_record_migrations.html#preparing-the-database
  • Loading branch information
stevepolitodesign committed Dec 5, 2024
1 parent 947dccf commit faa8d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def apply_template!
run "bundle install"

generate "suspenders:install:web"
rails_command "db:prepare"
rails_command "db:migrate"

say "\nCongratulations! You just pulled our suspenders."
end
Expand Down

0 comments on commit faa8d78

Please sign in to comment.