changing the belongs_to and has_many items in the models to reflect the new foriegn keys in the db and the fact that a (old)node/way/relation now belong to a changeset, which in turn has a user.
This commit is contained in:
parent
d19076d0ed
commit
40414cf324
7 changed files with 13 additions and 6 deletions
|
@ -3,7 +3,7 @@ class Relation < ActiveRecord::Base
|
|||
|
||||
set_table_name 'current_relations'
|
||||
|
||||
belongs_to :user
|
||||
belongs_to :changeset
|
||||
|
||||
has_many :old_relations, :foreign_key => 'id', :order => 'version'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue