diff options
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/db/schema.rb b/db/schema.rb index 49089a1..cbdde12 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20101211142354) do +ActiveRecord::Schema.define(:version => 20110312173240) do create_table "answers", :force => true do |t| t.text "content", :default => "", :null => false @@ -28,6 +28,12 @@ ActiveRecord::Schema.define(:version => 20101211142354) do add_index "answers", ["question_id"], :name => "index_answers_on_question_id" add_index "answers", ["type"], :name => "index_answers_on_type" + create_table "categories", :force => true do |t| + t.string "name", :null => false + t.datetime "created_at" + t.datetime "updated_at" + end + create_table "comments", :force => true do |t| t.text "content", :null => false t.datetime "created_at" @@ -72,12 +78,6 @@ ActiveRecord::Schema.define(:version => 20101211142354) do add_index "project_acceptances", ["user_id"], :name => "index_project_acceptances_on_user_id" - create_table "question_categories", :force => true do |t| - t.string "name", :null => false - t.datetime "created_at" - t.datetime "updated_at" - end - create_table "question_content_emails", :force => true do |t| t.text "requirements", :default => "", :null => false t.text "description" @@ -114,28 +114,28 @@ ActiveRecord::Schema.define(:version => 20101211142354) do end create_table "questions", :force => true do |t| - t.string "title", :null => false + t.string "title", :null => false t.string "documentation" - t.boolean "approved", :default => false + t.boolean "approved", :default => false t.datetime "created_at" t.datetime "updated_at" t.integer "user_id" - t.integer "question_category_id" + t.integer "category_id" t.integer "question_group_id" end - add_index "questions", ["question_category_id"], :name => "index_questions_on_question_category_id" + add_index "questions", ["category_id"], :name => "index_questions_on_category_id" add_index "questions", ["question_group_id"], :name => "index_questions_on_question_group_id" add_index "questions", ["user_id"], :name => "index_questions_on_user_id" create_table "user_categories", :force => true do |t| t.datetime "created_at" t.datetime "updated_at" - t.integer "user_id", :null => false - t.integer "question_category_id", :null => false + t.integer "user_id", :null => false + t.integer "category_id", :null => false end - add_index "user_categories", ["question_category_id"], :name => "index_user_categories_on_question_category_id" + add_index "user_categories", ["category_id"], :name => "index_user_categories_on_category_id" add_index "user_categories", ["user_id"], :name => "index_user_categories_on_user_id" create_table "user_question_groups", :force => true do |t| |