aboutsummaryrefslogtreecommitdiff
blob: 39dd08be94b47bcc2f65996bc9d96617b2c304cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# 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 => 20110627151021) do

  create_table "agenda_items", :force => true do |t|
    t.string   "title"
    t.string   "discussion"
    t.text     "body"
    t.boolean  "rejected",   :default => false
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "user_id"
    t.integer  "agenda_id"
    t.text     "timelimits", :default => "",    :null => 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"
    t.datetime "key_timestamp"
    t.boolean  "email_reminder_sent", :default => false,  :null => false
    t.text     "meeting_log",         :default => "",     :null => false
  end

  add_index "agendas", ["state"], :name => "index_agendas_on_state"

  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"
    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", :null => false
    t.string   "proxy_nick",          :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
    t.string   "remember_token"
    t.datetime "remember_token_expires_at"
    t.string   "name"
    t.string   "crypted_password",          :limit => 60
    t.string   "irc_nick"
    t.string   "email"
    t.boolean  "administrator",                           :default => false
    t.boolean  "council_member",                          :default => false,    :null => false
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "state",                                   :default => "active"
    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
  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"
    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