mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Merge branch 'task#104941754' into staging
This commit is contained in:
commit
3052b98f07
3 changed files with 15 additions and 2 deletions
12
app/models/legacy/object_history.rb
Normal file
12
app/models/legacy/object_history.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
module Legacy
|
||||
class ObjectHistory < Db
|
||||
self.table_name = :object_history
|
||||
|
||||
belongs_to :object_registry, foreign_key: :historyid
|
||||
|
||||
def self.instance_method_already_implemented?(method_name)
|
||||
return true if method_name == 'update'
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
|
@ -3,5 +3,6 @@ module Legacy
|
|||
self.table_name = :object_registry
|
||||
self.inheritance_column = nil
|
||||
belongs_to :registrar, foreign_key: :crid, primary_key: :legacy_id, class_name: '::Registrar'
|
||||
belongs_to :object_history, foreign_key: :historyid
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue