|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20130827003308) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20130904075504) do
|
|
|
|
|
|
|
|
|
|
create_table "a_user_watchers", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
@ -161,6 +161,17 @@ ActiveRecord::Schema.define(:version => 20130827003308) 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
|
|
|
|
|
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
|
|
|
|
@ -565,10 +576,11 @@ ActiveRecord::Schema.define(:version => 20130827003308) do
|
|
|
|
|
t.string "title"
|
|
|
|
|
t.string "share_type"
|
|
|
|
|
t.string "url"
|
|
|
|
|
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.integer "project_id"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.string "description"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "students", :force => true do |t|
|
|
|
|
@ -594,6 +606,16 @@ ActiveRecord::Schema.define(:version => 20130827003308) 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
|
|
|
|
@ -663,6 +685,9 @@ ActiveRecord::Schema.define(:version => 20130827003308) do
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "user_statuses", ["changesets_count"], :name => "index_user_statuses_on_changesets_count"
|
|
|
|
|
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"
|
|
|
|
|