|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20130911140205) do
|
|
|
|
|
|
|
|
|
|
create_table "a_user_watchers", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
@ -77,6 +77,7 @@ ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "reward"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "bids", :force => true do |t|
|
|
|
|
@ -161,6 +162,18 @@ ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
add_index "comments", ["author_id"], :name => "index_comments_on_author_id"
|
|
|
|
|
add_index "comments", ["commented_id", "commented_type"], :name => "index_comments_on_commented_id_and_commented_type"
|
|
|
|
|
|
|
|
|
|
create_table "courses", :force => true do |t|
|
|
|
|
|
t.integer "tea_id"
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.integer "state"
|
|
|
|
|
t.string "code"
|
|
|
|
|
t.integer "time"
|
|
|
|
|
t.string "extra"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.string "location"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "custom_fields", :force => true do |t|
|
|
|
|
|
t.string "type", :limit => 30, :default => "", :null => false
|
|
|
|
|
t.string "name", :limit => 30, :default => "", :null => false
|
|
|
|
@ -246,6 +259,11 @@ ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
|
|
|
|
|
add_index "groups_users", ["group_id", "user_id"], :name => "groups_users_ids", :unique => true
|
|
|
|
|
|
|
|
|
|
create_table "homework_for_courses", :force => true do |t|
|
|
|
|
|
t.integer "project_id"
|
|
|
|
|
t.integer "bid_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "issue_categories", :force => true do |t|
|
|
|
|
|
t.integer "project_id", :default => 0, :null => false
|
|
|
|
|
t.string "name", :limit => 30, :default => "", :null => false
|
|
|
|
@ -476,6 +494,9 @@ ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
t.integer "project_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "project_statuses", ["changesets_count"], :name => "index_project_statuses_on_changesets_count"
|
|
|
|
|
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"
|
|
|
|
@ -578,6 +599,13 @@ ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "students_for_courses", :force => true do |t|
|
|
|
|
|
t.integer "student_id"
|
|
|
|
|
t.integer "course_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "taggings", :force => true do |t|
|
|
|
|
|
t.integer "tag_id"
|
|
|
|
|
t.integer "taggable_id"
|
|
|
|
@ -595,6 +623,16 @@ ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
t.string "name"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "teachers", :force => true do |t|
|
|
|
|
|
t.string "tea_name"
|
|
|
|
|
t.string "location"
|
|
|
|
|
t.integer "couurse_time"
|
|
|
|
|
t.integer "course_code"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.string "extra"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "time_entries", :force => true do |t|
|
|
|
|
|
t.integer "project_id", :null => false
|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
@ -645,6 +683,7 @@ ActiveRecord::Schema.define(:version => 20130828080407) do
|
|
|
|
|
t.integer "zip_code"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "identity"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "user_preferences", :force => true do |t|
|
|
|
|
|