# 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 => 20090606153236) do create_table "countries", :force => true do |t| t.string "name", :limit => 128, :default => "", :null => false t.string "abbreviation", :limit => 3, :default => "", :null => false t.integer "sort", :default => 1000, :null => false end add_index "countries", ["abbreviation"], :name => "index_countries_on_abbreviation" add_index "countries", ["name"], :name => "index_countries_on_name" create_table "domain_themes", :force => true do |t| t.string "uri" t.string "name" end add_index "domain_themes", ["uri"], :name => "index_domain_themes_on_uri" create_table "languages", :force => true do |t| t.string "name" t.string "english_name" t.string "locale" t.boolean "supported", :default => true t.integer "is_default", :default => 0 end add_index "languages", ["locale"], :name => "index_languages_on_locale" add_index "languages", ["name"], :name => "index_languages_on_name" create_table "permissions", :force => true do |t| t.integer "role_id", :null => false t.integer "user_id", :null => false t.datetime "created_at" t.datetime "updated_at" end create_table "roles", :force => true do |t| t.string "rolename" t.datetime "created_at" t.datetime "updated_at" end create_table "states", :force => true do |t| t.string "name", :limit => 128, :default => "", :null => false t.string "abbreviation", :limit => 3, :default => "", :null => false t.integer "country_id", :limit => 8, :null => false end add_index "states", ["abbreviation"], :name => "index_states_on_abbreviation" add_index "states", ["country_id"], :name => "index_states_on_country_id" add_index "states", ["name"], :name => "index_states_on_name" create_table "themes", :force => true do |t| t.string "name" end create_table "users", :force => true do |t| t.string "login" t.string "email" t.string "first_name" t.string "last_name" t.string "crypted_password" t.string "password_salt" t.string "persistence_token" t.string "single_access_token" t.string "perishable_token" 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.datetime "current_login_at" t.string "current_login_ip" t.string "last_login_ip" t.boolean "terms_of_service", :default => false, :null => false t.string "time_zone", :default => "UTC" t.datetime "disabled_at" t.datetime "activated_at" t.datetime "created_at" t.datetime "updated_at" 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", ["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" end