|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20140320022724) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20140415090829) do
|
|
|
|
|
|
|
|
|
|
create_table "activities", :force => true do |t|
|
|
|
|
|
t.integer "act_id", :null => false
|
|
|
|
@ -157,6 +157,38 @@ ActiveRecord::Schema.define(:version => 20140320022724) 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 "contesting_projects", :force => true do |t|
|
|
|
|
|
t.integer "project_id"
|
|
|
|
|
t.string "contest_id"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.string "reward"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "contesting_softapplications", :force => true do |t|
|
|
|
|
|
t.integer "softapplication_id"
|
|
|
|
|
t.integer "contest_id"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.string "reward"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "contests", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.integer "budget"
|
|
|
|
|
t.integer "author_id"
|
|
|
|
|
t.date "deadline"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.integer "commit"
|
|
|
|
|
t.string "password"
|
|
|
|
|
t.datetime "created_on", :null => false
|
|
|
|
|
t.datetime "updated_on", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "courses", :force => true do |t|
|
|
|
|
|
t.integer "tea_id"
|
|
|
|
|
t.string "name"
|
|
|
|
@ -173,7 +205,7 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
|
|
|
|
t.string "setup_time"
|
|
|
|
|
t.string "endup_time"
|
|
|
|
|
t.string "class_period"
|
|
|
|
|
t.integer "school_id"
|
|
|
|
|
t.string "school_name"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "custom_fields", :force => true do |t|
|
|
|
|
@ -354,6 +386,13 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
|
|
|
|
add_index "issues", ["status_id"], :name => "index_issues_on_status_id"
|
|
|
|
|
add_index "issues", ["tracker_id"], :name => "index_issues_on_tracker_id"
|
|
|
|
|
|
|
|
|
|
create_table "join_in_competitions", :force => true do |t|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "competition_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "join_in_contests", :force => true do |t|
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "bid_id"
|
|
|
|
@ -645,6 +684,21 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
|
|
|
|
t.string "description"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "softapplications", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.string "description"
|
|
|
|
|
t.integer "app_type_id"
|
|
|
|
|
t.string "app_type_name"
|
|
|
|
|
t.string "android_min_version_available"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "contest_id"
|
|
|
|
|
t.integer "softapplication_id"
|
|
|
|
|
t.integer "is_public"
|
|
|
|
|
t.string "application_developers"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "students_for_courses", :force => true do |t|
|
|
|
|
|
t.integer "student_id"
|
|
|
|
|
t.integer "course_id"
|
|
|
|
@ -758,6 +812,16 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
|
|
|
|
|
|
|
|
|
add_index "user_preferences", ["user_id"], :name => "index_user_preferences_on_user_id"
|
|
|
|
|
|
|
|
|
|
create_table "user_scores", :force => true do |t|
|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
|
t.integer "collaboration"
|
|
|
|
|
t.integer "influence"
|
|
|
|
|
t.integer "skill"
|
|
|
|
|
t.integer "active"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "user_statuses", :force => true do |t|
|
|
|
|
|
t.integer "changesets_count"
|
|
|
|
|
t.integer "watchers_count"
|
|
|
|
|