Sha256: e56f0e0a6d6915da34e3117a42256b574e14f138b0497a07cbe0af71f1b14698

Contents?: true

Size: 189 Bytes

Versions: 8

Compression:

Stored size: 189 Bytes

Contents

class Project < ApplicationRecord
  belongs_to :owner, class_name: 'User'
  has_many :issues
  has_many :assignments, class_name: 'ProjectAssignment'

  validates :name, presence: true
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
model_base_generators-0.3.3 example/app/models/project.rb
model_base_generators-0.3.2 example/app/models/project.rb
model_base_generators-0.3.1 example/app/models/project.rb
model_base_generators-0.3.0 example/app/models/project.rb
model_base_generators-0.2.4 example/app/models/project.rb
model_base_generators-0.2.3 example/app/models/project.rb
model_base_generators-0.2.2 example/app/models/project.rb
model_base_generators-0.2.1 example/app/models/project.rb