Rails generate model + migration for --parent

21 views
Skip to first unread message

David Shenk

unread,
Dec 13, 2014, 2:41:43 PM12/13/14
to rubyonra...@googlegroups.com
I have a base model MyAppRecordBase which inherits from
ActiveRecord::Base and which all other models inherit from. I used (in
config/environments/development.rb)
config.generators.active_record[:parent] = 'MyAppRecordBase' to make it
default. How do I make rails generate model XYZ to create a migration
file for new models (it do all exept creating migration file..)?

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages