Project

General

Profile

Bug #11846

Specify join_table and foreign keys for habtm associations

Added by Daniel Lobato Garcia almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Rails
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Rails 4 does not figure out these associations automatically and it won't find the tables. Instead, we have to specify join tables for habtm associations. This is a Rails 3 compatible change.


Related issues

Related to Foreman - Tracker #3157: Rails 4.1 upgrade tasksClosed2013-09-27

Associated revisions

Revision 741bd717 (diff)
Added by Daniel Lobato Garcia almost 4 years ago

Fixes #11846 - Specify join_table and foreign keys for habtm associations

Rails 4 does not figure out these associations automatically and it
won't find the tables. Instead, we have to specify join tables for habtm
associations. This is a Rails 3 compatible change.

Revision ee99bfba (diff)
Added by Daniel Lobato Garcia almost 4 years ago

Refs #11846 - Specify join_tables for taxonomies

Missed this as part of the previous fix for 11846. As a brief reminder,
it's necessary to specify the join table for habtm associations on Rails
4, and it doesn't hurt on Rails 3, so we should do it before the upgrade.

History

#1 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2728 added
  • Pull request deleted ()

#2 Updated by Daniel Lobato Garcia almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Ohad Levy almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 63

#4 Updated by Ohad Levy almost 4 years ago

#5 Updated by Dominic Cleal almost 4 years ago

  • Category set to Rails
  • Assignee set to Daniel Lobato Garcia

Also available in: Atom PDF