Browse Source

relation

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
e40358c537
  1. 1
      app/models/domain.rb
  2. 1
      app/models/record.rb

1
app/models/domain.rb

@ -1,2 +1,3 @@
class Domain < ActiveRecord::Base
has_many :records
end

1
app/models/record.rb

@ -1,2 +1,3 @@
class Record < ActiveRecord::Base
belongs_to :domain
end

Loading…
Cancel
Save