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:
Shaun McDonald 2008-09-30 18:21:56 +00:00
parent d19076d0ed
commit 40414cf324
7 changed files with 13 additions and 6 deletions

View file

@ -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'