Schema definition/ Migration with composite keys

83 views
Skip to first unread message

mvime...@gmail.com

unread,
Feb 25, 2013, 6:12:57 AM2/25/13
to compos...@googlegroups.com
Any chance to use define composite keys with the ActiveRecord::Schema.define or Migrations?

Would be nice to have something like:

  create_table "caps", :primary_key => ["cap_numbr","cap_xvals","cap_yvals"], :force => true do |t|
..........

Best Regards
Reply all
Reply to author
Forward
0 new messages