|
|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20131009074454) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20131017140123) do
|
|
|
|
|
|
|
|
|
|
create_table "a_user_watchers", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
@ -506,9 +506,12 @@ ActiveRecord::Schema.define(:version => 20131009074454) do
|
|
|
|
|
t.integer "watchers_count"
|
|
|
|
|
t.integer "project_id"
|
|
|
|
|
t.integer "project_type"
|
|
|
|
|
t.integer "gitlab_group_id", :limit => 8
|
|
|
|
|
t.float "grade"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "project_statuses", ["changesets_count"], :name => "index_project_statuses_on_changesets_count"
|
|
|
|
|
add_index "project_statuses", ["grade"], :name => "index_project_statuses_on_grade"
|
|
|
|
|
add_index "project_statuses", ["watchers_count"], :name => "index_project_statuses_on_watchers_count"
|
|
|
|
|
|
|
|
|
|
create_table "project_tags", :force => true do |t|
|
|
|
|
|
@ -563,17 +566,18 @@ ActiveRecord::Schema.define(:version => 20131009074454) do
|
|
|
|
|
add_index "queries", ["user_id"], :name => "index_queries_on_user_id"
|
|
|
|
|
|
|
|
|
|
create_table "repositories", :force => true do |t|
|
|
|
|
|
t.integer "project_id", :default => 0, :null => false
|
|
|
|
|
t.string "url", :default => "", :null => false
|
|
|
|
|
t.string "login", :limit => 60, :default => ""
|
|
|
|
|
t.string "password", :default => ""
|
|
|
|
|
t.string "root_url", :default => ""
|
|
|
|
|
t.integer "project_id", :default => 0, :null => false
|
|
|
|
|
t.string "url", :default => "", :null => false
|
|
|
|
|
t.string "login", :limit => 60, :default => ""
|
|
|
|
|
t.string "password", :default => ""
|
|
|
|
|
t.string "root_url", :default => ""
|
|
|
|
|
t.string "type"
|
|
|
|
|
t.string "path_encoding", :limit => 64
|
|
|
|
|
t.string "log_encoding", :limit => 64
|
|
|
|
|
t.string "path_encoding", :limit => 64
|
|
|
|
|
t.string "log_encoding", :limit => 64
|
|
|
|
|
t.text "extra_info"
|
|
|
|
|
t.string "identifier"
|
|
|
|
|
t.boolean "is_default", :default => false
|
|
|
|
|
t.boolean "is_default", :default => false
|
|
|
|
|
t.string "git_project_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "repositories", ["project_id"], :name => "index_repositories_on_project_id"
|
|
|
|
|
@ -703,8 +707,21 @@ ActiveRecord::Schema.define(:version => 20131009074454) do
|
|
|
|
|
t.string "teacher_realname"
|
|
|
|
|
t.string "student_realname"
|
|
|
|
|
t.string "location_city"
|
|
|
|
|
t.string "git_token"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "user_grades", :force => true do |t|
|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
|
t.integer "project_id", :null => false
|
|
|
|
|
t.float "grade", :default => 0.0
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "user_grades", ["grade"], :name => "index_user_grades_on_grade"
|
|
|
|
|
add_index "user_grades", ["project_id"], :name => "index_user_grades_on_project_id"
|
|
|
|
|
add_index "user_grades", ["user_id"], :name => "index_user_grades_on_user_id"
|
|
|
|
|
|
|
|
|
|
create_table "user_preferences", :force => true do |t|
|
|
|
|
|
t.integer "user_id", :default => 0, :null => false
|
|
|
|
|
t.text "others"
|
|
|
|
|
@ -718,11 +735,13 @@ ActiveRecord::Schema.define(:version => 20131009074454) do
|
|
|
|
|
t.integer "changesets_count"
|
|
|
|
|
t.integer "watchers_count"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.float "grade", :default => 0.0
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "user_statuses", ["changesets_count"], :name => "index_user_statuses_on_changesets_count"
|
|
|
|
|
add_index "user_statuses", ["grade"], :name => "index_user_statuses_on_grade"
|
|
|
|
|
add_index "user_statuses", ["watchers_count"], :name => "index_user_statuses_on_watchers_count"
|
|
|
|
|
|
|
|
|
|
create_table "user_tags", :force => true do |t|
|
|
|
|
|
|