2015-08-25 21:42:46 -04:00
|
|
|
# == Schema Information
|
|
|
|
#
|
2015-11-13 13:22:46 -05:00
|
|
|
# Table name: ci_trigger_requests
|
2015-08-25 21:42:46 -04:00
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# trigger_id :integer not null
|
|
|
|
# variables :text
|
|
|
|
# created_at :datetime
|
|
|
|
# updated_at :datetime
|
|
|
|
# commit_id :integer
|
|
|
|
#
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class TriggerRequest < ActiveRecord::Base
|
|
|
|
extend Ci::Model
|
|
|
|
|
|
|
|
belongs_to :trigger, class_name: 'Ci::Trigger'
|
|
|
|
belongs_to :commit, class_name: 'Ci::Commit'
|
|
|
|
has_many :builds, class_name: 'Ci::Build'
|
|
|
|
|
|
|
|
serialize :variables
|
|
|
|
end
|
|
|
|
end
|