Closed abhinavc closed 1 year ago
Hi @abhinavc, thanks for reporting this issue.
I believe this was a bug that was introduced in v10.0.x and that version has now been yanked. We're currently in the middle of reworking the gem to be more stable. I recommend downgrading to v9.0.0 for the time being and following this issue: https://github.com/ilyakatz/data-migrate/issues/268
Hi, I'm using version 10.0.2 of the gem. And I noticed that when I try to recreate my local database (as follows)
then schema migrations are loaded - but data migrations aren't.
After looking into the code (please see attached screenshot), I noticed references to DATA_SCHEMA environment variable.
And so, I tried doing the following instead. And it worked.
$>DATA_SCHEMA='db/data_schema.rb' rails db:schema:load:with_data
So, either
rails db:schema:load:with_data
, orload_schema_current
needs to beENV['DATA_SCHEMA'] || <something>