|
|
|
@ -13,14 +13,6 @@
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20130918004629) 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
|
|
|
|
|
t.string "act_type", :null => false
|
|
|
|
@ -77,7 +69,6 @@ ActiveRecord::Schema.define(:version => 20130918004629) 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|
|
|
|
|
@ -284,9 +275,9 @@ ActiveRecord::Schema.define(:version => 20130918004629) 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", :null => false
|
|
|
|
|
t.integer "issue_from_id", :null => false
|
|
|
|
|
t.integer "issue_to_id", :null => false
|
|
|
|
|
t.string "relation_type", :default => "", :null => false
|
|
|
|
|
t.integer "delay"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -428,22 +419,6 @@ ActiveRecord::Schema.define(:version => 20130918004629) 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
|
|
|
|
@ -504,18 +479,6 @@ ActiveRecord::Schema.define(:version => 20130918004629) 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"
|
|
|
|
|
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
|
|
|
|
|
t.text "description"
|
|
|
|
@ -583,6 +546,26 @@ ActiveRecord::Schema.define(:version => 20130918004629) 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"
|
|
|
|
@ -593,20 +576,13 @@ ActiveRecord::Schema.define(:version => 20130918004629) do
|
|
|
|
|
|
|
|
|
|
create_table "shares", :force => true do |t|
|
|
|
|
|
t.date "created_on"
|
|
|
|
|
t.string "title"
|
|
|
|
|
t.string "share_type"
|
|
|
|
|
t.string "url"
|
|
|
|
|
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|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.string "title"
|
|
|
|
|
t.integer "share_type"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "project_id"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "students_for_courses", :force => true do |t|
|
|
|
|
@ -667,7 +643,7 @@ ActiveRecord::Schema.define(:version => 20130918004629) 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
|
|
|
|
|
t.string "value", :limit => 40, :default => "", :null => false
|
|
|
|
|
t.datetime "created_on", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -693,7 +669,6 @@ ActiveRecord::Schema.define(:version => 20130918004629) do
|
|
|
|
|
t.integer "zip_code"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
t.integer "identity"
|
|
|
|
|
t.string "technical_title"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -717,14 +692,6 @@ ActiveRecord::Schema.define(:version => 20130918004629) do
|
|
|
|
|
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"
|
|
|
|
|
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
|
|
|
|
|