aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-05-19 15:18:51 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-05-21 22:34:28 +0200
commit262926d03bf53b16cd5a4b6583bf26e1891b9b5c (patch)
tree59a8fbc70a4c5ceee646aae3da00b5f03fdeaf85 /db
parentGenerated answer model (diff)
downloadrecruiting-webapp-262926d03bf53b16cd5a4b6583bf26e1891b9b5c.tar.gz
recruiting-webapp-262926d03bf53b16cd5a4b6583bf26e1891b9b5c.tar.bz2
recruiting-webapp-262926d03bf53b16cd5a4b6583bf26e1891b9b5c.zip
User has and belongs to many categories
Diffstat (limited to 'db')
-rw-r--r--db/schema.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index b90e51a..04259b8 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 => 20100520194856) do
+ActiveRecord::Schema.define(:version => 20100520194927) do
create_table "answers", :force => true do |t|
t.text "content"
@@ -37,6 +37,16 @@ ActiveRecord::Schema.define(:version => 20100520194856) do
add_index "questions", ["question_category_id"], :name => "index_questions_on_question_category_id"
+ create_table "user_categories", :force => true do |t|
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.integer "user_id"
+ t.integer "question_category_id"
+ end
+
+ add_index "user_categories", ["question_category_id"], :name => "index_user_categories_on_question_category_id"
+ add_index "user_categories", ["user_id"], :name => "index_user_categories_on_user_id"
+
create_table "users", :force => true do |t|
t.string "crypted_password", :limit => 40
t.string "salt", :limit => 40