diff --git a/db/migrate/20131031071414_add_setup_time_to_courses.rb b/db/migrate/20131031071414_add_setup_time_to_courses.rb new file mode 100644 index 000000000..882e1d932 --- /dev/null +++ b/db/migrate/20131031071414_add_setup_time_to_courses.rb @@ -0,0 +1,5 @@ +class AddSetupTimeToCourses < ActiveRecord::Migration + def change + add_column :courses, :setup_time, :string + end +end diff --git a/db/migrate/20131031071452_add_endup_time_to_courses.rb b/db/migrate/20131031071452_add_endup_time_to_courses.rb new file mode 100644 index 000000000..587a8eff6 --- /dev/null +++ b/db/migrate/20131031071452_add_endup_time_to_courses.rb @@ -0,0 +1,5 @@ +class AddEndupTimeToCourses < ActiveRecord::Migration + def change + add_column :courses, :endup_time, :string + end +end diff --git a/db/migrate/20131031093317_add_class_period_to_courses.rb b/db/migrate/20131031093317_add_class_period_to_courses.rb new file mode 100644 index 000000000..7a7abc8a9 --- /dev/null +++ b/db/migrate/20131031093317_add_class_period_to_courses.rb @@ -0,0 +1,5 @@ +class AddClassPeriodToCourses < ActiveRecord::Migration + def change + add_column :courses, :class_period, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 7b97e6911..a5a245bd2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,15 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20131021024144) do +ActiveRecord::Schema.define(:version => 20131031093317) do + + create_table "a_user_watchers", :force => true do |t| + t.string "name" + t.text "description" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.integer "member_id" + end create_table "activities", :force => true do |t| t.integer "act_id", :null => false @@ -163,12 +171,15 @@ ActiveRecord::Schema.define(:version => 20131021024144) do t.string "code" t.integer "time" t.string "extra" - 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.string "location" t.string "term" t.string "string" t.string "password" + t.string "setup_time" + t.string "endup_time" + t.string "class_period" end create_table "custom_fields", :force => true do |t| @@ -279,9 +290,9 @@ ActiveRecord::Schema.define(:version => 20131021024144) do add_index "issue_categories", ["project_id"], :name => "issue_categories_project_id" create_table "issue_relations", :force => true do |t| - t.integer "issue_from_id", :null => false - t.integer "issue_to_id", :null => false - t.string "relation_type", :default => "", :null => false + t.integer "issue_from_id", :null => false + t.integer "issue_to_id", :null => false + t.string "relation_type", :null => false t.integer "delay" end @@ -423,6 +434,22 @@ ActiveRecord::Schema.define(:version => 20131021024144) do add_index "messages", ["last_reply_id"], :name => "index_messages_on_last_reply_id" add_index "messages", ["parent_id"], :name => "messages_parent_id" + create_table "messages_for_bids", :force => true do |t| + t.string "message" + t.integer "user_id" + t.integer "bid_id" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "messages_for_users", :force => true do |t| + t.integer "messager_id" + t.integer "user_id" + t.string "message" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "news", :force => true do |t| t.integer "project_id" t.string "title", :limit => 60, :default => "", :null => false @@ -482,10 +509,22 @@ ActiveRecord::Schema.define(:version => 20131021024144) do t.integer "watchers_count" t.integer "project_id" t.integer "project_type" - t.float "grade", :default => 0.0 + 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| + t.integer "project_id" + t.integer "tag_id" + t.string "description" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.integer "user_id" + end create_table "projects", :force => true do |t| t.string "name", :default => "", :null => false @@ -530,17 +569,18 @@ ActiveRecord::Schema.define(:version => 20131021024144) 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" @@ -554,26 +594,6 @@ ActiveRecord::Schema.define(:version => 20131021024144) do t.string "issues_visibility", :limit => 30, :default => "default", :null => false end - create_table "seems_rateable_cached_ratings", :force => true do |t| - t.integer "cacheable_id", :limit => 8 - t.string "cacheable_type" - t.float "avg", :null => false - t.integer "cnt", :null => false - t.string "dimension" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - create_table "seems_rateable_rates", :force => true do |t| - t.integer "rater_id", :limit => 8 - t.integer "rateable_id" - t.string "rateable_type" - t.float "stars", :null => false - t.string "dimension" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - create_table "settings", :force => true do |t| t.string "name", :default => "", :null => false t.text "value" @@ -584,9 +604,9 @@ ActiveRecord::Schema.define(:version => 20131021024144) do create_table "shares", :force => true do |t| t.date "created_on" - t.string "url" t.string "title" - t.integer "share_type" + t.string "share_type" + t.string "url" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.integer "project_id" @@ -594,6 +614,12 @@ ActiveRecord::Schema.define(:version => 20131021024144) do t.string "description" end + create_table "students", :force => true do |t| + t.string "name" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "students_for_courses", :force => true do |t| t.integer "student_id" t.integer "course_id" @@ -652,7 +678,7 @@ ActiveRecord::Schema.define(:version => 20131021024144) do create_table "tokens", :force => true do |t| t.integer "user_id", :default => 0, :null => false t.string "action", :limit => 30, :default => "", :null => false - t.string "value", :limit => 40, :default => "", :null => false + t.string "value", :limit => 40 t.datetime "created_on", :null => false end @@ -678,12 +704,13 @@ ActiveRecord::Schema.define(:version => 20131021024144) do t.integer "zip_code" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false - t.string "technical_title" t.integer "identity" + t.string "technical_title" t.string "student_id" 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| @@ -720,6 +747,14 @@ ActiveRecord::Schema.define(:version => 20131021024144) do 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| + t.integer "user_id" + t.integer "tag_id" + t.string "description" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + create_table "users", :force => true do |t| t.string "login", :default => "", :null => false t.string "hashed_password", :limit => 40, :default => "", :null => false