Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add join table migration generator | Aleksey Magusev | 2012-07-18 | 1 | -1/+9 |
| | | | | | | | | | | | | | 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 references statements to migration generator | Aleksey Magusev | 2012-07-08 | 1 | -4/+16 |
| | | | | | | | | | | | | | AddXXXToYYY/RemoveXXXFromYYY migrations are produced with references statements, for instance rails g migration AddReferencesToProducts user:references supplier:references{polymorphic} will generate the migration with: add_reference :products, :user, index: true add_reference :products, :supplier, polymorphic: true, index: true | ||||
* | Refactor migration generator | Oscar Del Ben | 2012-05-18 | 1 | -6/+3 |
| | |||||
* | Fix indenting in migration generator | Colin Bartlett | 2012-03-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | $ rails generate migration remove_foo_from_bars foo:string This currently generates: def up remove_column :bars, :foo end Fix it: def up remove_column :bars, :foo end | ||||
* | Avoid another blank line in generated migration and remove assertion as per ↵ | Marcelo Silveira | 2012-03-21 | 1 | -1/+1 |
| | | | | @spastorino request | ||||
* | Merge pull request #5532 from mhfs/migration_blank_line | José Valim | 2012-03-21 | 1 | -1/+1 |
|\ | | | | | Remove blank line from generated migration | ||||
| * | Remove blank line from generated migration | Marcelo Silveira | 2012-03-20 | 1 | -1/+1 |
| | | |||||
* | | Generate Migration Thats Adds Removed Index | Travis Jeffery | 2012-03-21 | 1 | -0/+3 |
|/ | | | | | When generating a migration that removes a field with an index, the down will add both the field and its index. | ||||
* | Tidy up migration types. | José Valim | 2011-12-24 | 1 | -2/+2 |
| | |||||
* | added ability to specify from cli when generating a model/migration whether ↵ | Dmitrii Samoilov | 2011-12-24 | 1 | -3/+9 |
| | | | | particular property should be an index like this 'rails g model person name:string:index profile:string' | ||||
* | Use Rails 3.1 `change` method in 'add_' migration generator | Prem Sichanugrist | 2011-01-04 | 1 | -0/+8 |
| | |||||
* | updating generators | Aaron Patterson | 2010-11-17 | 1 | -2/+2 |
| | |||||
* | Avoid a blank line before the add/remove columns | Santiago Pastorino | 2010-06-25 | 1 | -2/+2 |
| | |||||
* | Line break in migration template and nicer code indentation | Łukasz Strzałkowski | 2010-06-25 | 1 | -6/+8 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix problem with migrations template that can cause bogus code to be created | Steve Abatangle | 2010-06-20 | 1 | -4/+8 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Load generators from both lib/rails/generators and lib/generators. Using the ↵ | José Valim | 2010-03-23 | 1 | -0/+11 |
former since it's less obstrusive. |