Lukas_Skywalker
lukasskywalker.bsky.social
Lukas_Skywalker
@lukasskywalker.bsky.social
Teacher and programmer. Ruby, Rails, .NET.
examzone.ch
@masilotti.com @rosa.codes
Rails 8 seems to load the schema if you run db:migrate on an empty DB instead of running the migrations. I'd consider it a bug (db:migrate is, according to the docs, supposed to run the missing migrations and dump the schema), but the issue doesn't get much attention
db:drop db:create db:migrate - run only difference migrations · Issue #53649 · rails/rails
When I do db:drop, the database is deleted. Then I create it using db:create and migrate it using db:migrate. Problem: The original db:schema is started, and thus the changes made in the migration ...
github.com
November 27, 2024 at 11:25 PM
Something like that? github.com/rails/rails/...

TLDR: db:migrate does load the schema if the database is empty. I'm very unhappy with that...
db:drop db:create db:migrate - run only difference migrations · Issue #53649 · rails/rails
When I do db:drop, the database is deleted. Then I create it using db:create and migrate it using db:migrate. Problem: The original db:schema is started, and thus the changes made in the migration ...
github.com
November 27, 2024 at 10:24 AM