stantmob / arpa

Authorization Gem for Ruby and Ruby on Rails projects.
MIT License
10 stars 14 forks source link

Problem with existing project #18

Open valterbarros opened 6 years ago

valterbarros commented 6 years ago

Problem:

Hey man, you add a two new fields to repository_profiles table here https://github.com/stantmob/arpa/blob/8b6303193cb0206b094d23bda4965f2d08cc5125/lib/generators/arpa/templates/migration.rb#L49

and here

https://github.com/stantmob/arpa/blob/dabe5b1054f4d72af2e0c2ca3130edd65416225c/lib/generators/arpa/templates/migration.rb#L50

But as my project was already runned the migration(lib/generators/arpa/templates/migration.rb) will don't run this anymore.

Solution Create a new migration with these fields and force gem's user to run this.

rachidcalazans commented 6 years ago

Nice catch @valterbarros. We can do this.