Map legacy contact fields to contact

This commit is contained in:
Martin Lensment 2015-02-27 18:13:03 +02:00 committed by Priit Tark
parent a598b46723
commit 9cd4bad3a9
5 changed files with 77 additions and 40 deletions

View file

@ -1,5 +1,7 @@
module Legacy
class Contact < Db
self.table_name = :contact
belongs_to :object_registry, foreign_key: :id
belongs_to :object, foreign_key: :id
end
end

View file

@ -0,0 +1,10 @@
module Legacy
class Object < Db
self.table_name = :object
def self.instance_method_already_implemented?(method_name)
return true if method_name == 'update'
super
end
end
end