This gem provides developers with the ability to easily integrate chargebee's subscription management into their application backed by active record models.
Also, by adding force: true we prevent prompting the user for conflict resolution when we template over the automatically generated rails model from the line above.
The technique below fixes the issue described here -- https://github.com/spritlesoftware/chargebee-rails-subscriptions/issues/16
The changes in
install_generator.rb
fix an issue where migrations are generated so quickly that they end up with the same timestamp, preventing the migration from running. The necessary module exists in Rails 4.2.4 -- https://github.com/rails/rails/blob/v4.2.4/activerecord/lib/rails/generators/active_record/migration.rbAlso, by adding
force: true
we prevent prompting the user for conflict resolution when we template over the automatically generated rails model from the line above.