1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

13 commits

Author SHA1 Message Date
Arun Agrawal
601cc60a1b Fixed test names for generated_attribute_test.rb 2012-12-13 10:29:07 +05:30
Rafael Mendonça França
95ccbd847d Add GeneratedAttribute#column_name to get the name of the column in the
database
2012-12-10 00:01:41 -03:00
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
José Valim
b4e97ea2d9 Tidy up migration types. 2011-12-24 10:38:19 +01:00
Dmitrii Samoilov
7a47f362c8 added ability to specify from cli when generating a model/migration whether particular property should be an index like this 'rails g model person name:string:index profile:string' 2011-12-24 10:01:54 +01:00
Marc-Andre Lafortune
eeb58b0934 Generate valid default fixtures for models with a type column
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-07-11 19:47:57 -03:00
José Valim
08983fefd5 Attributes on scaffold and model generators default to string.
This allows the following: "rails g scaffold Post title body:text author"
2011-06-17 15:10:53 -03:00
Akira Matsuda
4d1752bfb2 generate HTML5 number_field tag for integer fields 2011-05-16 23:45:39 +09:00
José Valim
757bbd540c :'' is not valid ruby. 2010-10-02 18:30:38 +02:00
rohit
8ffa695cec Failing test for GeneratedAttribute [#5461 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-02 12:59:21 +02:00
Jeff Kreeftmeijer
d93b45e8d3 Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-10 20:04:49 +02:00
José Valim
1a2d556de7 Rename assert_attribute_type to asser_field_type. 2010-05-16 12:07:44 +02:00
Jeff Kreeftmeijer
5ff6de0982 Added assert_attribute_type to clean up GeneratedAttributeTest [#2377 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-16 12:07:22 +02:00