mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:33:05 +08:00
FIX merge dev_devops branch
This commit is contained in:
5
db/migrate/20201020083709_add_index_to_projects.rb
Normal file
5
db/migrate/20201020083709_add_index_to_projects.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddIndexToProjects < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :projects, :identifier, name: 'index_projects_on_identifier'
|
||||
end
|
||||
end
|
||||
12
db/migrate/20201021031915_create_project_statistics.rb
Normal file
12
db/migrate/20201021031915_create_project_statistics.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateProjectStatistics < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :project_statistics do |t|
|
||||
t.integer :common_projects_count, :default => 0
|
||||
t.integer :mirror_projects_count, :default => 0
|
||||
t.integer :sync_mirror_projects_count, :default => 0
|
||||
t.integer :commits_total_count, :default => 0
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddIndexForProjectTypeToProjects < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :projects, :project_type
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user