|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20150123020615) do
|
|
|
|
|
ActiveRecord::Schema.define(:version => 20150128032421) do
|
|
|
|
|
|
|
|
|
|
create_table "activities", :force => true do |t|
|
|
|
|
|
t.integer "act_id", :null => false
|
|
|
|
@ -925,6 +925,7 @@ ActiveRecord::Schema.define(:version => 20150123020615) do
|
|
|
|
|
t.integer "attachmenttype", :default => 1
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.integer "dts_test", :default => 0
|
|
|
|
|
t.string "enterprise_name"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "projects", ["lft"], :name => "index_projects_on_lft"
|
|
|
|
@ -1069,6 +1070,14 @@ ActiveRecord::Schema.define(:version => 20150123020615) do
|
|
|
|
|
t.string "description"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "social_groups", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.text "description"
|
|
|
|
|
t.integer "user_id"
|
|
|
|
|
t.datetime "created_at", :null => false
|
|
|
|
|
t.datetime "updated_at", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "softapplications", :force => true do |t|
|
|
|
|
|
t.string "name"
|
|
|
|
|
t.text "description"
|
|
|
|
@ -1284,6 +1293,36 @@ ActiveRecord::Schema.define(:version => 20150123020615) do
|
|
|
|
|
add_index "versions", ["project_id"], :name => "versions_project_id"
|
|
|
|
|
add_index "versions", ["sharing"], :name => "index_versions_on_sharing"
|
|
|
|
|
|
|
|
|
|
create_table "voting_choices", :force => true do |t|
|
|
|
|
|
t.integer "poll_id", :null => false
|
|
|
|
|
t.string "text", :null => false
|
|
|
|
|
t.datetime "created_on", :null => false
|
|
|
|
|
t.integer "position", :default => 1
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "voting_choices", ["poll_id"], :name => "choices_poll_id"
|
|
|
|
|
|
|
|
|
|
create_table "voting_polls", :force => true do |t|
|
|
|
|
|
t.integer "project_id", :null => false
|
|
|
|
|
t.string "question", :null => false
|
|
|
|
|
t.datetime "created_on", :null => false
|
|
|
|
|
t.boolean "revote"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "voting_polls", ["project_id"], :name => "polls_project_id"
|
|
|
|
|
|
|
|
|
|
create_table "voting_votes", :force => true do |t|
|
|
|
|
|
t.integer "user_id", :null => false
|
|
|
|
|
t.integer "poll_id", :null => false
|
|
|
|
|
t.integer "choice_id", :null => false
|
|
|
|
|
t.datetime "created_on", :null => false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_index "voting_votes", ["choice_id"], :name => "votes_choice_id"
|
|
|
|
|
add_index "voting_votes", ["poll_id"], :name => "votes_poll_id"
|
|
|
|
|
add_index "voting_votes", ["user_id", "poll_id"], :name => "votes_user_poll_unique", :unique => true
|
|
|
|
|
add_index "voting_votes", ["user_id"], :name => "votes_user_id"
|
|
|
|
|
|
|
|
|
|
create_table "watchers", :force => true do |t|
|
|
|
|
|
t.string "watchable_type", :default => "", :null => false
|
|
|
|
|
t.integer "watchable_id", :default => 0, :null => false
|
|
|
|
|