Sha256: 9cabf1f73d4ddea3138fe9de91991ca0303a15ea1c7cadc72f1ea5b2e0b9aa9d

Contents?: true

Size: 453 Bytes

Versions: 4

Compression:

Stored size: 453 Bytes

Contents

require "active_record"

class User < ActiveRecord::Base
  has_many :projects
  has_many :ideas
end

class Project < ActiveRecord::Base
  belongs_to :user
  has_many :ideas
  has_many :issues
end

class Idea < ActiveRecord::Base
  belongs_to :project
  belongs_to :user
end

class Issue < ActiveRecord::Base
  belongs_to :project
  belongs_to :user
  has_many :comments
end

class Comment < ActiveRecord::Base
  belongs_to :issue
  belongs_to :user
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreign_key_validation-0.0.6 spec/support/load_models.rb
foreign_key_validation-0.0.5 spec/support/load_models.rb
foreign_key_validation-0.0.4 spec/support/load_models.rb
foreign_key_validation-0.0.3 spec/support/load_models.rb