rake
This commit is contained in:
parent
0c0dfbd093
commit
14e6db457b
|
@ -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|
|
||||
|
|
|
@ -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)
|
||||
# 获取默认分支
|
||||
|
|
Loading…
Reference in New Issue