Skip to content

Instantly share code, notes, and snippets.

@tsechingho
Created December 1, 2009 08:20
Show Gist options
  • Save tsechingho/246161 to your computer and use it in GitHub Desktop.
Save tsechingho/246161 to your computer and use it in GitHub Desktop.
# 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 => 20091201052257) do
create_table "open_id_authentication_associations", :force => true do |t|
t.integer "issued"
t.integer "lifetime"
t.string "handle"
t.string "assoc_type"
t.binary "server_url"
t.binary "secret"
end
create_table "open_id_authentication_nonces", :force => true do |t|
t.integer "timestamp", :null => false
t.string "server_url"
t.string "salt", :null => false
end
create_table "preferences", :force => true do |t|
t.integer "user_id"
t.string "language"
t.string "time_zone"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "roles", :force => true do |t|
t.string "name", :null => false
t.string "title"
t.string "description"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "sessions", :force => true do |t|
t.string "session_id", :null => false
t.text "data"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
create_table "user_roles", :id => false, :force => true do |t|
t.integer "user_id", :null => false
t.integer "role_id", :null => false
end
create_table "users", :force => true do |t|
t.string "login"
t.string "email", :null => false
t.string "state", :default => "passive", :null => false
t.string "crypted_password"
t.string "password_salt"
t.string "persistence_token", :null => false
t.string "perishable_token", :null => false
t.string "single_access_token", :null => false
t.integer "login_count", :default => 0, :null => false
t.integer "failed_login_count", :default => 0, :null => false
t.datetime "last_request_at"
t.datetime "last_login_at"
t.string "last_login_ip"
t.datetime "current_login_at"
t.string "current_login_ip"
t.datetime "created_at"
t.datetime "updated_at"
t.string "openid_identifier"
end
add_index "users", ["email"], :name => "index_users_on_email"
add_index "users", ["last_request_at"], :name => "index_users_on_last_request_at"
add_index "users", ["login"], :name => "index_users_on_login"
add_index "users", ["openid_identifier"], :name => "index_users_on_openid_identifier"
add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
add_index "users", ["persistence_token"], :name => "index_users_on_persistence_token"
add_index "users", ["single_access_token"], :name => "index_users_on_single_access_token"
add_index "users", ["state"], :name => "index_users_on_state"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment