aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration/create_join_table_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add join table migration generatorAleksey Magusev2012-07-181-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 namesRafael Mendonça França2012-07-011-1/+1
| | | | connection.tables returns an array of strings
* Refactor migration test_helperAleksey Magusev2012-07-011-14/+7
| | | | and create_join_table_test
* Add `create_join_table` migration helper to create HABTM join tablesRafael Mendonça França2012-01-271-0/+70