• A
    Add polymorphic option to model generator · 94b230e1
    Aleksey Magusev 提交于
    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
    94b230e1
generated_attribute_test.rb 3.7 KB