Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -4/+4 |
| | |||||
* | update Rails::Generators docs [ci skip] | Francesco Rodriguez | 2012-10-07 | 1 | -1/+1 |
| | |||||
* | Add fkey attributes to `join_table` migration generator | Aleksey Magusev | 2012-07-19 | 1 | -1/+9 |
| | |||||
* | Add join table migration generator | Aleksey Magusev | 2012-07-18 | 1 | -1/+2 |
| | | | | | | | | | | | | | For instance, running rails g migration CreateMediaJoinTable artists musics:uniq will create a migration with create_join_table :artists, :musics do |t| # t.index [:artist_id, :music_id] t.index [:music_id, :artist_id], unique: true end | ||||
* | Add polymorphic option to model generator | Aleksey Magusev | 2012-06-27 | 1 | -2/+12 |
| | | | | | | | | | | 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 | ||||
* | Refactor GeneratedAttributes | Carlos Antonio da Silva | 2012-04-22 | 1 | -7/+10 |
| | | | | | | | | * Move reference? method to class to remove duplicated code * Move to_sym typecast from #initialize to .parse method (make it easier to refactor reference?), remove AS object/blank require * Use []= instead of merge!({}) * Remove in? in favor of include?, remove AS object/inclusion require | ||||
* | the index option is always created if the type is one of references or ↵ | Vijay Dev | 2012-04-18 | 1 | -2/+4 |
| | | | | belongs_to. Refactoring it to a simpler form and fixing the build | ||||
* | let's not use `and` in place of `&&` | Vijay Dev | 2012-04-18 | 1 | -1/+1 |
| | |||||
* | Automatically create indexes for references/belongs_to statements in migrations. | Joshua Wood | 2012-04-14 | 1 | -0/+4 |
| | |||||
* | Fix failing test from [7619bcf2] | Prem Sichanugrist | 2012-01-30 | 1 | -1/+1 |
| | |||||
* | rewrites a couple of alternations in regexps as character classes | Xavier Noria | 2012-01-30 | 1 | -1/+1 |
| | | | | | Character classes are the specific regexp construct to express alternation of individual characters. | ||||
* | Support decimal{1,2} and decimal{1-2} and decimal{1.2} so it works fine with ↵ | José Valim | 2012-01-22 | 1 | -2/+2 |
| | | | | | | | | bash, zsh, etc, closes #4602 Conflicts: railties/test/generators/migration_generator_test.rb | ||||
* | fix a broken test | Vijay Dev | 2012-01-15 | 1 | -1/+1 |
| | | | | | | The commit 2f632f53919d2b44dbb2cfaadabed2310319f005 extracted the options into constants and while doing so, there was a minor error of using a wrong constant name. | ||||
* | Extract index and uniq index options to constants | Carlos Antonio da Silva | 2012-01-14 | 1 | -4/+7 |
| | |||||
* | Use 1.9 hash syntax instead. | José Valim | 2011-12-24 | 1 | -2/+2 |
| | |||||
* | Fix regexp intervals. | José Valim | 2011-12-24 | 1 | -2/+2 |
| | |||||
* | Tidy up migration types. | José Valim | 2011-12-24 | 1 | -33/+43 |
| | |||||
* | added ability to specify from cli when generating a model/migration whether ↵ | Dmitrii Samoilov | 2011-12-24 | 1 | -4/+48 |
| | | | | particular property should be an index like this 'rails g model person name:string:index profile:string' | ||||
* | Generate valid default fixtures for models with a type column | Marc-Andre Lafortune | 2011-07-11 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Attributes on scaffold and model generators default to string. | José Valim | 2011-06-17 | 1 | -1/+1 |
| | | | | This allows the following: "rails g scaffold Post title body:text author" | ||||
* | generate HTML5 number_field tag for integer fields | Akira Matsuda | 2011-05-16 | 1 | -6/+7 |
| | |||||
* | Remove `#among?` from Active Support | Prem Sichanugrist | 2011-04-13 | 1 | -1/+1 |
| | | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`. | ||||
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵ | David Heinemeier Hansson | 2011-04-12 | 1 | -1/+1 |
| | | | | suggestion! | ||||
* | Using Object#in? and Object#either? in various places | Prem Sichanugrist | 2011-04-11 | 1 | -1/+2 |
| | | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?. | ||||
* | Output a friendly message when no type given for GeneratedAttribute [#5461 ↵ | rohit | 2010-09-02 | 1 | -0/+1 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 ↵ | Jeff Kreeftmeijer | 2010-06-10 | 1 | -1/+2 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | using :time_select when the attribute type is :time in the scaffold ↵ | Jeff Kreeftmeijer | 2010-05-16 | 1 | -6/+7 |
| | | | | | | generator. [#2377 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move railties/lib/* into railties/lib/* | Yehuda Katz + Carl Lerche | 2009-09-24 | 1 | -0/+48 |