Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
rails db:setup doesn't mark data migrations completed using data_schema.rb #82
I've been running into an issue with
I also tried running the tasks by unpacking setup:
I've gone through the code a bit, and noticed that the
I tried a simple method rename to override the original implementation, but that didn't have any effect. Do you have any idea what could be going wrong?
if you drop the database, than all data migrations are nullified. In order to load them back in, you would need to run regular
@ilyakatz I'm not sure I understand what you mean.
If I manually run this line in a
My issue is that this isn't done when a database is set up using
My check in the codebase indicates that this is supposed to happen, but is blocked - possibly because of the reason I listed above.
I currently have to manually run this line in a
Recently, I faced this same issue. I tried fixing this through #85. But I ended up adding versions of data migrations into schema migrations.
Apparently, https://github.com/rails/rails/blob/master/activerecord/lib/active_record/tasks/database_tasks.rb#L251 bumps everything all at once. Still I am debugging the workflow to make it work.
Meanwhile, do you have any inputs?