1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/rails/generators
Aleksey Magusev 94b230e189 Add polymorphic option to model generator
For instance,

    $ rails g model Product supplier:references{polymorphic}

generate model with `belongs_to :supplier, polymorphic: true` association and appropriate migration.

Also fix model_generator_test.rb#L196 and #L201
2012-06-27 18:12:28 +04:00
..
active_record Add polymorphic option to model generator 2012-06-27 18:12:28 +04:00
active_record.rb Remove unused implementation of next_migration_number 2012-02-23 09:56:34 -02:00