|
|
@ -11,7 +11,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20140404030103) do
|
|
|
|
ActiveRecord::Schema.define(:version => 20140411005214) do
|
|
|
|
|
|
|
|
|
|
|
|
create_table "activities", :force => true do |t|
|
|
|
|
create_table "activities", :force => true do |t|
|
|
|
|
t.integer "act_id", :null => false
|
|
|
|
t.integer "act_id", :null => false
|
|
|
@ -23,11 +23,6 @@ ActiveRecord::Schema.define(:version => 20140404030103) do
|
|
|
|
add_index "activities", ["user_id", "act_type"], :name => "index_activities_on_user_id_and_act_type"
|
|
|
|
add_index "activities", ["user_id", "act_type"], :name => "index_activities_on_user_id_and_act_type"
|
|
|
|
add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
|
|
|
|
add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
|
|
|
|
|
|
|
|
|
|
|
|
create_table "andoidcontests", :force => true do |t|
|
|
|
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_table "attachments", :force => true do |t|
|
|
|
|
create_table "attachments", :force => true do |t|
|
|
|
|
t.integer "container_id"
|
|
|
|
t.integer "container_id"
|
|
|
|
t.string "container_type", :limit => 30
|
|
|
|
t.string "container_type", :limit => 30
|
|
|
@ -172,6 +167,16 @@ ActiveRecord::Schema.define(:version => 20140404030103) do
|
|
|
|
t.string "reward"
|
|
|
|
t.string "reward"
|
|
|
|
end
|
|
|
|
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|
|
|
|
|
create_table "contests", :force => true do |t|
|
|
|
|
t.string "name"
|
|
|
|
t.string "name"
|
|
|
|
t.integer "budget"
|
|
|
|
t.integer "budget"
|
|
|
@ -528,19 +533,6 @@ ActiveRecord::Schema.define(:version => 20140404030103) do
|
|
|
|
t.string "salt", :null => false
|
|
|
|
t.string "salt", :null => false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
create_table "open_source_projects", :force => true do |t|
|
|
|
|
|
|
|
|
t.string "name"
|
|
|
|
|
|
|
|
t.string "description", :default => ""
|
|
|
|
|
|
|
|
t.integer "commit_count", :default => 0
|
|
|
|
|
|
|
|
t.integer "code_line", :default => 0
|
|
|
|
|
|
|
|
t.integer "users_count", :default => 0
|
|
|
|
|
|
|
|
t.date "last_commit_time"
|
|
|
|
|
|
|
|
t.string "url"
|
|
|
|
|
|
|
|
t.date "date_collected"
|
|
|
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_table "praise_tread_caches", :force => true do |t|
|
|
|
|
create_table "praise_tread_caches", :force => true do |t|
|
|
|
|
t.integer "object_id", :null => false
|
|
|
|
t.integer "object_id", :null => false
|
|
|
|
t.string "object_type"
|
|
|
|
t.string "object_type"
|
|
|
@ -620,21 +612,6 @@ ActiveRecord::Schema.define(:version => 20140404030103) do
|
|
|
|
add_index "queries", ["project_id"], :name => "index_queries_on_project_id"
|
|
|
|
add_index "queries", ["project_id"], :name => "index_queries_on_project_id"
|
|
|
|
add_index "queries", ["user_id"], :name => "index_queries_on_user_id"
|
|
|
|
add_index "queries", ["user_id"], :name => "index_queries_on_user_id"
|
|
|
|
|
|
|
|
|
|
|
|
create_table "relative_memos", :force => true do |t|
|
|
|
|
|
|
|
|
t.integer "osp_id", :null => false
|
|
|
|
|
|
|
|
t.integer "parent_id"
|
|
|
|
|
|
|
|
t.string "subject", :null => false
|
|
|
|
|
|
|
|
t.text "content", :null => false
|
|
|
|
|
|
|
|
t.integer "author_id"
|
|
|
|
|
|
|
|
t.integer "replies_count", :default => 0
|
|
|
|
|
|
|
|
t.integer "last_reply_id"
|
|
|
|
|
|
|
|
t.boolean "lock", :default => false
|
|
|
|
|
|
|
|
t.boolean "sticky", :default => false
|
|
|
|
|
|
|
|
t.boolean "is_quote", :default => false
|
|
|
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create_table "repositories", :force => true do |t|
|
|
|
|
create_table "repositories", :force => true do |t|
|
|
|
|
t.integer "project_id", :default => 0, :null => false
|
|
|
|
t.integer "project_id", :default => 0, :null => false
|
|
|
|
t.string "url", :default => "", :null => false
|
|
|
|
t.string "url", :default => "", :null => false
|
|
|
@ -716,6 +693,9 @@ ActiveRecord::Schema.define(:version => 20140404030103) do
|
|
|
|
t.integer "user_id"
|
|
|
|
t.integer "user_id"
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
|
|
|
t.integer "contest_id"
|
|
|
|
|
|
|
|
t.integer "softapplication_id"
|
|
|
|
|
|
|
|
t.integer "is_public"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
create_table "students_for_courses", :force => true do |t|
|
|
|
|
create_table "students_for_courses", :force => true do |t|
|
|
|
|