Nicolae Claudius
13 years ago
3 changed files with 3 additions and 1 deletions
@ -1,3 +1,4 @@ |
|||||||
class Domain < ActiveRecord::Base |
class Domain < ActiveRecord::Base |
||||||
|
set_inheritance_column { 'sti_type' } |
||||||
has_many :records |
has_many :records |
||||||
end |
end |
||||||
|
@ -1,3 +1,4 @@ |
|||||||
class Record < ActiveRecord::Base |
class Record < ActiveRecord::Base |
||||||
|
set_inheritance_column { 'sti_type' } |
||||||
belongs_to :domain |
belongs_to :domain |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue