aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration/join_table.rb
Commit message (Collapse)AuthorAgeFilesLines
* Coerce strings in create_join_table.Steve Klabnik2012-11-211-1/+1
| | | | | | | If you accidentally pass a string and a symbol, this breaks. So we coerce them both to strings. Fixes #7715
* Create default join table name using a SymbolCarlos Antonio da Silva2012-07-191-1/+1
| | | | | Lets stick with a symbol in join table name, it was removed in 993e1643650b7b0939437f86b7b4cda0d92b0b8f and broke the build.
* Add fkey attributes to `join_table` migration generatorAleksey Magusev2012-07-191-1/+1
|
* Add join table migration generatorAleksey Magusev2012-07-181-4/+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 `create_join_table` migration helper to create HABTM join tablesRafael Mendonça França2012-01-271-0/+17