diff --git a/app/models/domain.rb b/app/models/domain.rb index 0233a78..173f106 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -1,3 +1,4 @@ class Domain < ActiveRecord::Base + set_inheritance_column { 'sti_type' } has_many :records end diff --git a/app/models/record.rb b/app/models/record.rb index 265c0e6..a8cbc98 100644 --- a/app/models/record.rb +++ b/app/models/record.rb @@ -1,3 +1,4 @@ class Record < ActiveRecord::Base + set_inheritance_column { 'sti_type' } belongs_to :domain end diff --git a/app/views/fragments/_bottom.html.erb b/app/views/fragments/_bottom.html.erb index ce8bb6a..87ae651 100644 --- a/app/views/fragments/_bottom.html.erb +++ b/app/views/fragments/_bottom.html.erb @@ -1,5 +1,5 @@
\ No newline at end of file