Memorandums, Logbook & Shares
Thursday, September 27, 2012
Rails customize has_and_belongs_to_many join table name
has_and_belongs_to_many ..., :join_table => '[Join table name]'
In addition, to change foreign key names, use
:foreign_key => '...'
:association_foreign_key => '...'
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.