rails g beautiful_migration AddFamilyToPlants family:references
Produce :
4: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_migration_generator.rb:42:in 'add_to_model' 3: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_scaffold_common_methods.rb:217:in 'add_relation' 2: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_scaffold_common_methods.rb:217:in 'each' 1: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_scaffold_common_methods.rb:226:in 'block in add_relation' /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_migration_generator.rb:63:in 'model': undefined method 'underscore' for nil:NilClass (NoMethodError)
rails g beautiful_migration AddFamilyToPlants family:references
Produce :
4: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_migration_generator.rb:42:in 'add_to_model' 3: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_scaffold_common_methods.rb:217:in 'add_relation' 2: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_scaffold_common_methods.rb:217:in 'each' 1: from /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_scaffold_common_methods.rb:226:in 'block in add_relation' /Users/scl/.rvm/gems/ruby-2.7.0/gems/beautiful_scaffold-2.0.0.pre/lib/generators/beautiful_migration_generator.rb:63:in 'model': undefined method 'underscore' for nil:NilClass (NoMethodError)
Need to add that in tests !