Basic domain import

This commit is contained in:
Martin Lensment 2015-03-03 14:53:31 +02:00 committed by Priit Tark
parent 7707f5ff8e
commit 41b51455cf
7 changed files with 107 additions and 10 deletions

View file

@ -0,0 +1,9 @@
module Legacy
class ObjectState < Db
self.table_name = :object_state
belongs_to :enum_object_state, foreign_key: :state_id
delegate :name, to: :enum_object_state, prefix: false, allow_nil: true
end
end