forked from Gitlink/forgeplus
20 lines
431 B
Ruby
20 lines
431 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: project_infos
|
|
#
|
|
# id :integer not null, primary key
|
|
# project_id :integer
|
|
# user_id :integer
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
|
|
class ProjectInfo < ActiveRecord::Base
|
|
|
|
belongs_to :project
|
|
belongs_to :user
|
|
validates_presence_of :project_id, :user_id
|
|
validates_uniqueness_of :project_id, :scope => :user_id
|
|
|
|
end
|