Royce icon indicating copy to clipboard operation
Royce copied to clipboard

a couple of issues installing in Rails 6

Open rcravioto opened this issue 4 years ago • 0 comments

My last application was on Rails 4 and I was using royce with no issues. I LOVE IT! I am starting a ew App on Rails 6 and was following your instructions and three things happened. (BTW- I freaked out whenI could not find any search results that could help me out of trouble; but despite being a bit rusty in SW DEV I managed to get it to work.)

Here are the three issues:

  1. I could not rails generate until I executed: spring stop in the terminal after bundle install

  2. I could not rake db:migrate until I a) added a migration version in brackets like this class CreateRoyce < ActiveRecord::Migration[6.0]

b) removed a duplicated index did so by commenting out the explicit index statement in the royce migration like this: #add_index :royce_connector, :role_id

Success!

After the successful rake db:migrate, the schema imagically includes the following line like this: t.index ["role_id"], name: "index_royce_connector_on_role_id"

Thank you for an awesome gem!

rcravioto avatar Apr 06 '20 05:04 rcravioto