# This file is autogenerated. Instead of editing this file, please use the # migrations feature of ActiveRecord to incrementally modify your database, and # then regenerate this schema definition. ActiveRecord::Schema.define(:version => 21) do create_table "events", :force => true do |t| t.integer "host_id" t.string "name" t.text "description" t.datetime "starts_at" t.datetime "ends_at" t.datetime "created_at" t.datetime "updated_at" t.string "address" t.string "city" t.string "zip" t.string "state" t.string "country" t.string "phone" t.string "flickr_url" t.string "flickr_feed_url" end create_table "geocodes", :force => true do |t| t.decimal "latitude", :precision => 15, :scale => 12 t.decimal "longitude", :precision => 15, :scale => 12 t.string "query" t.string "street" t.string "locality" t.string "region" t.string "postal_code" t.string "country" end add_index "geocodes", ["query"], :name => "geocodes_query_index", :unique => true add_index "geocodes", ["longitude"], :name => "geocodes_longitude_index" add_index "geocodes", ["latitude"], :name => "geocodes_latitude_index" create_table "geocodings", :force => true do |t| t.integer "geocodable_id" t.integer "geocode_id" t.string "geocodable_type" end add_index "geocodings", ["geocodable_type"], :name => "geocodings_geocodable_type_index" add_index "geocodings", ["geocode_id"], :name => "geocodings_geocode_id_index" add_index "geocodings", ["geocodable_id"], :name => "geocodings_geocodable_id_index" create_table "graphics", :force => true do |t| t.integer "event_id" t.integer "size" t.string "content_type" t.string "filename" t.integer "height" t.integer "width" end create_table "news_items", :force => true do |t| t.integer "event_id" t.text "content" t.datetime "created_at" t.datetime "updated_at" end create_table "open_id_authentication_associations", :force => true do |t| t.binary "server_url" t.string "handle" t.binary "secret" t.integer "issued" t.integer "lifetime" t.string "assoc_type" end create_table "open_id_authentication_nonces", :force => true do |t| t.string "nonce" t.integer "created" end create_table "open_id_authentication_settings", :force => true do |t| t.string "setting" t.binary "value" end create_table "purchases", :force => true do |t| t.integer "buyer_id" t.datetime "created_at" t.datetime "updated_at" t.datetime "paid_at" t.integer "ticket_type_id" t.integer "quantity" t.decimal "cost_per_ticket", :precision => 10, :scale => 2 end create_table "ticket_types", :force => true do |t| t.string "name" t.integer "event_id" t.decimal "cost_per_ticket", :precision => 10, :scale => 2 t.integer "quantity" t.datetime "created_at" t.datetime "updated_at" end create_table "tickets", :force => true do |t| t.integer "ticket_type_id" t.datetime "created_at" t.datetime "updated_at" t.integer "purchase_id" t.string "uuid" end create_table "users", :force => true do |t| t.string "login" t.string "email" t.string "crypted_password", :limit => 40 t.string "salt", :limit => 40 t.datetime "created_at" t.datetime "updated_at" t.string "remember_token" t.datetime "remember_token_expires_at" t.string "flickr_name" t.string "full_name" t.string "identity_url" end end