TalentBox / sequel-rails

A gem for using Sequel with Rails 5.x, 6.x, 7.x, 8.x
http://talentbox.github.io/sequel-rails/
MIT License
326 stars 81 forks source link

migration tasks don't let me overwrite the name of the schema_migrations table #118

Open HoneyryderChuck opened 8 years ago

HoneyryderChuck commented 8 years ago

This is the case where I'm migrating from AR to sequel, and the table has a different schema. Instead of force-update it, I could just use an alternative table, if I use the Migrator API correctly and am able to pass the :table directive. See http://sequel.jeremyevans.net/rdoc/classes/Sequel/Migrator.html#method-c-run

Here's where it's used within sequel_rails: https://github.com/TalentBox/sequel-rails/blob/master/lib/sequel_rails/migrations.rb#L6-L10

mull commented 6 years ago

Same problem here. Did you by any chance solve it?

HoneyryderChuck commented 6 years ago

If I did, I don't remember how :/ sorry about that.

mull commented 6 years ago

No worries. I opted to not use the gem and write the DB tasks myself