aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Xie <xieconnect@gmail.com>2010-07-22 15:30:50 +0800
committerHans de Graaff <hans@degraaff.org>2010-07-23 08:22:57 +0200
commitc4e0c2bbcdd62822d4eb00ea3d786b7cb4b8f7b1 (patch)
tree769fb2430bb905bdf8ea43157a3954c54c1ead19
parentUser role added and tested (diff)
downloadcouncil-webapp-c4e0c2bbcdd62822d4eb00ea3d786b7cb4b8f7b1.tar.gz
council-webapp-c4e0c2bbcdd62822d4eb00ea3d786b7cb4b8f7b1.tar.bz2
council-webapp-c4e0c2bbcdd62822d4eb00ea3d786b7cb4b8f7b1.zip
ignore db/schema.rb
schema.rb is easy to be outdated after several rebases. It's meaningless to track it.
-rw-r--r--.gitignore1
-rw-r--r--db/schema.rb52
2 files changed, 1 insertions, 52 deletions
diff --git a/.gitignore b/.gitignore
index 487484b..07e0935 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@ config/database.yml
db/*.sqlite3
nbproject
*.swp
+db/schema.rb
diff --git a/db/schema.rb b/db/schema.rb
deleted file mode 100644
index c2996b6..0000000
--- a/db/schema.rb
+++ /dev/null
@@ -1,52 +0,0 @@
-# This file is auto-generated from the current state of the database. Instead of editing this file,
-# please use the migrations feature of Active Record to incrementally modify your database, and
-# then regenerate this schema definition.
-#
-# Note that this schema.rb definition is the authoritative source for your database schema. If you need
-# to create the application database on another system, you should be using db:schema:load, not running
-# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
-# you'll amass, the slower it'll run and the greater likelihood for issues).
-#
-# It's strongly recommended to check this file into your version control system.
-
-ActiveRecord::Schema.define(:version => 20100606021229) do
-
- create_table "questions", :force => true do |t|
- t.string "name"
- t.text "question"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.integer "creator_id"
- end
-
- add_index "questions", ["creator_id"], :name => "index_questions_on_creator_id"
-
- create_table "users", :force => true do |t|
- t.string "crypted_password", :limit => 40
- t.string "salt", :limit => 40
- t.string "remember_token"
- t.datetime "remember_token_expires_at"
- t.string "name"
- t.string "email_address"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.string "state", :default => "active"
- t.datetime "key_timestamp"
- t.string "role", :limit => 20, :default => :guest
- end
-
- add_index "users", ["state"], :name => "index_users_on_state"
-
- create_table "votes", :force => true do |t|
- t.boolean "support"
- t.text "reasoning"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.integer "user_id"
- t.integer "question_id"
- end
-
- add_index "votes", ["question_id"], :name => "index_votes_on_question_id"
- add_index "votes", ["user_id"], :name => "index_votes_on_user_id"
-
-end