Commit 1fc88b58 authored by Valery Sizov's avatar Valery Sizov

annotate approver and approval models

parent 3cc78d89
# == Schema Information
#
# Table name: approvals
#
# id :integer not null, primary key
# merge_request_id :integer not null
# user_id :integer not null
# created_at :datetime
# updated_at :datetime
#
class Approval < ActiveRecord::Base class Approval < ActiveRecord::Base
belongs_to :user belongs_to :user
belongs_to :merge_request belongs_to :merge_request
......
# == Schema Information
#
# Table name: approvers
#
# id :integer not null, primary key
# target_id :integer not null
# target_type :string(255)
# user_id :integer not null
# created_at :datetime
# updated_at :datetime
#
class Approver < ActiveRecord::Base class Approver < ActiveRecord::Base
belongs_to :target, polymorphic: true belongs_to :target, polymorphic: true
belongs_to :user belongs_to :user
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment