Hi Guys,
I want to skip the creation of a migration file while generating a model. I already have the database created. Please how do I go about this. Tnx in advance.
Best Regards,
Hi Guys,
I want to skip the creation of a migration file while generating a model. I already have the database created. Please how do I go about this. Tnx in advance.
Best Regards,
Generate the model normally and then delete the migration file? Or just create model ruby file and you are done.
Or use the --skip-migration
flag:
rails g model User --skip-migration
invoke active_record
create app/models/user.rb
invoke test_unit
create test/models/user_test.rb
create test/fixtures/users.yml
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.