Allowed for the results page of quickvotes to be hidden while the quickvote is go
[selectricity-live] / db / schema.rb
1 # This file is autogenerated. Instead of editing this file, please use the
2 # migrations feature of ActiveRecord to incrementally modify your database, and
3 # then regenerate this schema definition.
4
5 ActiveRecord::Schema.define() do
6
7   create_table "candidates", :force => true do |t|
8     t.column "election_id",      :integer,                                :null => false
9     t.column "name",             :string,  :limit => 100, :default => "", :null => false
10     t.column "description",      :text
11     t.column "picture_filename", :string,  :limit => 200
12     t.column "picture_data",     :binary
13     t.column "picture_type",     :string,  :limit => 100
14   end
15
16   create_table "elections", :force => true do |t|
17     t.column "name",            :string,   :limit => 100, :default => "",    :null => false
18     t.column "description",     :text,                    :default => "",    :null => false
19     t.column "anonymous",       :integer,  :limit => 4,   :default => 1,     :null => false
20     t.column "startdate",       :datetime
21     t.column "enddate",         :datetime,                                   :null => false
22     t.column "active",          :integer,  :limit => 4,   :default => 0,     :null => false
23     t.column "viewable",        :integer,  :limit => 4,   :default => 1,     :null => false
24     t.column "notices",         :integer,  :limit => 4,   :default => 0,     :null => false
25     t.column "user_id",         :integer
26     t.column "quickuser",       :string
27     t.column "election_method", :string,   :limit => 100, :default => "ssd"
28     t.column "type",            :string,   :limit => 100, :default => "",    :null => false
29   end
30
31   add_index "elections", ["user_id"], :name => "fk_user_election"
32
33   create_table "rankings", :force => true do |t|
34     t.column "vote_id",      :integer
35     t.column "candidate_id", :integer
36     t.column "rank",         :integer
37   end
38
39   create_table "tokens", :force => true do |t|
40     t.column "token",   :string,  :limit => 100, :default => "", :null => false
41     t.column "vote_id", :integer,                                :null => false
42   end
43
44   add_index "tokens", ["vote_id"], :name => "fk_vote_token"
45
46   create_table "users", :force => true do |t|
47     t.column "login",                     :text
48     t.column "ip",                        :text,                   :default => "", :null => false
49     t.column "email",                     :text
50     t.column "crypted_password",          :string,   :limit => 40
51     t.column "salt",                      :string,   :limit => 40
52     t.column "created_at",                :datetime
53     t.column "updated_at",                :datetime
54     t.column "remember_token",            :text
55     t.column "remember_token_expires_at", :datetime
56   end
57
58   create_table "voters", :force => true do |t|
59     t.column "email",       :string,  :limit => 100
60     t.column "password",    :string,  :limit => 100
61     t.column "contacted",   :integer, :limit => 4,   :default => 0, :null => false
62     t.column "election_id", :integer,                               :null => false
63     t.column "session_id",  :string,  :limit => 32
64     t.column "ipaddress",   :string,  :limit => 32
65   end
66
67   add_index "voters", ["election_id"], :name => "fk_election_voter"
68
69   create_table "votes", :force => true do |t|
70     t.column "voter_id",  :integer
71     t.column "confirmed", :integer,  :limit => 4, :default => 0, :null => false
72     t.column "time",      :datetime
73   end
74
75   add_index "votes", ["voter_id"], :name => "fk_vote_voter"
76
77 end

Benjamin Mako Hill || Want to submit a patch?