Both quickvotes and full-size elections use the same partial in views/voter
[selectricity] / 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   end
12
13   create_table "elections", :force => true do |t|
14     t.column "name",            :string,   :limit => 100, :default => "",    :null => false
15     t.column "description",     :text,                    :default => "",    :null => false
16     t.column "anonymous",       :integer,  :limit => 4,   :default => 1,     :null => false
17     t.column "startdate",       :datetime
18     t.column "enddate",         :datetime,                                   :null => false
19     t.column "active",          :integer,  :limit => 4,   :default => 0,     :null => false
20     t.column "viewable",        :integer,  :limit => 4,   :default => 1,     :null => false
21     t.column "notices",         :integer,  :limit => 4,   :default => 0,     :null => false
22     t.column "user_id",         :integer
23     t.column "quickuser",       :string
24     t.column "election_method", :string,   :limit => 100, :default => "ssd"
25     t.column "type",            :string,   :limit => 100, :default => "",    :null => false
26   end
27
28   add_index "elections", ["user_id"], :name => "fk_user_election"
29
30   create_table "pictures", :force => true do |t|
31     t.column "filename",     :string,  :limit => 200
32     t.column "data",         :binary
33     t.column "filetype",     :string,  :limit => 100
34     t.column "candidate_id", :integer
35   end
36
37   add_index "pictures", ["candidate_id"], :name => "fk_candidate_picture"
38
39   create_table "rankings", :force => true do |t|
40     t.column "vote_id",      :integer
41     t.column "candidate_id", :integer
42     t.column "rank",         :integer
43   end
44
45   create_table "sitealizer", :force => true do |t|
46     t.column "path",       :string
47     t.column "ip",         :string
48     t.column "referer",    :string
49     t.column "language",   :string
50     t.column "user_agent", :string
51     t.column "created_at", :datetime
52     t.column "created_on", :date
53   end
54
55   create_table "tokens", :force => true do |t|
56     t.column "token",   :string,  :limit => 100, :default => "", :null => false
57     t.column "vote_id", :integer,                                :null => false
58   end
59
60   add_index "tokens", ["vote_id"], :name => "fk_vote_token"
61
62   create_table "users", :force => true do |t|
63     t.column "login",                     :text
64     t.column "ip",                        :text,                   :default => "", :null => false
65     t.column "email",                     :text
66     t.column "crypted_password",          :string,   :limit => 40
67     t.column "salt",                      :string,   :limit => 40
68     t.column "created_at",                :datetime
69     t.column "updated_at",                :datetime
70     t.column "remember_token",            :text
71     t.column "remember_token_expires_at", :datetime
72   end
73
74   create_table "voters", :force => true do |t|
75     t.column "email",       :string,  :limit => 100
76     t.column "password",    :string,  :limit => 100
77     t.column "contacted",   :integer, :limit => 4,   :default => 0,  :null => false
78     t.column "election_id", :integer,                                :null => false
79     t.column "session_id",  :string,  :limit => 32
80     t.column "ipaddress",   :string,  :limit => 32
81     t.column "type",        :string,  :limit => 100, :default => "", :null => false
82   end
83
84   add_index "voters", ["election_id"], :name => "fk_election_voter"
85
86   create_table "votes", :force => true do |t|
87     t.column "voter_id",  :integer
88     t.column "confirmed", :integer,  :limit => 4, :default => 0, :null => false
89     t.column "time",      :datetime
90   end
91
92   add_index "votes", ["voter_id"], :name => "fk_vote_voter"
93
94 end

Benjamin Mako Hill || Want to submit a patch?