Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add join table migration generator | Aleksey Magusev | 2012-07-18 | 1 | -3/+17 |
| | | | | | | | | | | | | | 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 | ||||
* | Use strings for the table names | Rafael Mendonça França | 2012-07-01 | 1 | -1/+1 |
| | | | | connection.tables returns an array of strings | ||||
* | Refactor migration test_helper | Aleksey Magusev | 2012-07-01 | 1 | -14/+7 |
| | | | | and create_join_table_test | ||||
* | Add `create_join_table` migration helper to create HABTM join tables | Rafael Mendonça França | 2012-01-27 | 1 | -0/+70 |