# 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 => 20110802090951) do create_table "agenda_items", :force => true do |t| t.string "title", :default => "", :null => false t.string "discussion", :default => "", :null => false t.text "body", :default => "", :null => false t.boolean "rejected", :default => false, :null => false t.datetime "created_at" t.datetime "updated_at" t.integer "user_id" t.integer "agenda_id" t.text "timelimits", :default => "", :null => false t.string "discussion_time", :default => "", :null => false t.boolean "poll", :default => false end add_index "agenda_items", ["agenda_id"], :name => "index_agenda_items_on_agenda_id" add_index "agenda_items", ["user_id"], :name => "index_agenda_items_on_user_id" create_table "agendas", :force => true do |t| t.datetime "meeting_time" t.datetime "created_at" t.datetime "updated_at" t.string "state", :default => "open", :null => false t.datetime "key_timestamp" t.boolean "email_reminder_sent", :default => false, :null => false t.text "meeting_log", :default => "", :null => false t.text "summary" end add_index "agendas", ["state"], :name => "index_agendas_on_state" create_table "approvals", :force => true do |t| t.datetime "created_at" t.datetime "updated_at" t.integer "user_id", :null => false t.integer "agenda_id", :null => false end add_index "approvals", ["agenda_id"], :name => "index_approvals_on_agenda_id" add_index "approvals", ["user_id"], :name => "index_approvals_on_user_id" create_table "delayed_jobs", :force => true do |t| t.integer "priority", :default => 0 t.integer "attempts", :default => 0 t.text "handler" t.text "last_error" t.datetime "run_at" t.datetime "locked_at" t.datetime "failed_at" t.string "locked_by" t.datetime "created_at" t.datetime "updated_at" end add_index "delayed_jobs", ["locked_by"], :name => "delayed_jobs_locked_by" add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority" create_table "participations", :force => true do |t| t.string "irc_nick", :default => "", :null => false t.datetime "created_at" t.datetime "updated_at" t.integer "participant_id" t.integer "agenda_id" end add_index "participations", ["agenda_id"], :name => "index_participations_on_agenda_id" add_index "participations", ["participant_id"], :name => "index_participations_on_participant_id" create_table "proxies", :force => true do |t| t.string "council_member_nick", :default => "", :null => false t.string "proxy_nick", :default => "", :null => false t.datetime "created_at" t.datetime "updated_at" t.integer "council_member_id", :null => false t.integer "proxy_id", :null => false t.integer "agenda_id", :null => false end add_index "proxies", ["agenda_id"], :name => "index_proxies_on_agenda_id" add_index "proxies", ["council_member_id"], :name => "index_proxies_on_council_member_id" add_index "proxies", ["proxy_id"], :name => "index_proxies_on_proxy_id" create_table "users", :force => true do |t| t.string "salt", :limit => 40, :default => "", :null => false t.string "remember_token", :default => "", :null => false t.datetime "remember_token_expires_at" t.string "name", :default => "", :null => false t.string "crypted_password", :limit => 60, :default => "", :null => false t.string "irc_nick", :default => "", :null => false t.string "email", :default => "", :null => false t.boolean "administrator", :default => false, :null => false t.boolean "council_member", :default => false, :null => false t.datetime "created_at" t.datetime "updated_at" t.string "state", :default => "active", :null => false t.datetime "key_timestamp" end add_index "users", ["state"], :name => "index_users_on_state" create_table "votes", :force => true do |t| t.datetime "created_at" t.datetime "updated_at" t.integer "voting_option_id", :null => false t.integer "user_id", :null => false t.boolean "council_vote", :default => false, :null => false end add_index "votes", ["user_id"], :name => "index_votes_on_user_id" add_index "votes", ["voting_option_id", "user_id"], :name => "index_votes_on_voting_option_id_and_user_id", :unique => true add_index "votes", ["voting_option_id"], :name => "index_votes_on_voting_option_id" create_table "voting_options", :force => true do |t| t.string "description", :default => "", :null => false t.datetime "created_at" t.datetime "updated_at" t.integer "agenda_item_id", :null => false end add_index "voting_options", ["agenda_item_id"], :name => "index_voting_options_on_agenda_item_id" end