This commit is contained in:
huang 2016-07-20 09:38:23 +08:00
parent 0c0dfbd093
commit 14e6db457b
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class Changeset < ActiveRecord::Base
validates :committed_on, presence: true
validates :commit_date, presence: true
validates :scmid, uniqueness: {scope: :repository_id, allow_nil: true}
attr_accessible :product
attr_accessible :product, :project_id, :repository_id, :revision, :committer, :comments, :committed_on
attr_accessible :type
scope :visible, lambda {|*args|

View File

@ -4,7 +4,7 @@ namespace :gitlab do
begin
g = Gitlab.client
# projects = Project.find_by_sql("select * from projects where gpid is not null")
projects = Project.find("select * from projects where gpid is not null and id != 2")
projects = Project.find_by_sql("select * from projects where gpid is not null and id != 2")
projects.each do |project|
g_project = g.project(project.gpid)
# 获取默认分支