Build failures on master
skalee opened this issue · comments
Builds are broken for Rails 5.2 due to a missing method ActiveRecord::Migrator.migrate
. Similar issue in other project: thiagopradi/octopus#477.
There are at least two reasons for these failures.
Firstly, Rails 5.2 introduces a concept of migration contexts. More details on that can be found here:
Secondly, quoted_id
has been deprecated in Rails 5.1, and removed in Rails 5.2 in favour of Rails' type casting. A respective pull request is here: rails/rails#27962. More on topic can be found by googling for "Rails type casting", and perhaps following ones are good readings:
- https://api.rubyonrails.org/classes/ActiveModel/Type/Value.html
- https://metaskills.net/2015/01/06/activerecord-42s-type-casting/
- https://robots.thoughtbot.com/how-rails-works-type-casting
- https://blog.arkency.com/2016/03/custom-typecasting-with-activerecord-virtus-and-dry-types/
It is possible that there are more reasons.