Custom embeddable code works for png's except for top_bar
[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(:version => 3) 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     t.column "embeddable",          :boolean,                 :default => false, :null => false
27     t.column "authenticated",       :boolean,                 :default => true,  :null => false
28     t.column "early_results",       :boolean,                 :default => false, :null => false
29     t.column "embed_custom_string", :string
30   end
31
32   add_index "elections", ["user_id"], :name => "fk_user_election"
33
34   create_table "pictures", :force => true do |t|
35     t.column "filename",     :string
36     t.column "content_type", :string
37     t.column "size",         :integer
38     t.column "width",        :integer
39     t.column "height",       :integer
40     t.column "parent_id",    :integer
41     t.column "thumbnail",    :string
42     t.column "created_at",   :datetime
43     t.column "candidate_id", :integer
44   end
45
46   create_table "rankings", :force => true do |t|
47     t.column "vote_id",      :integer
48     t.column "candidate_id", :integer
49     t.column "rank",         :integer
50   end
51
52   create_table "sessions", :force => true do |t|
53     t.column "sessid",     :string
54     t.column "data",       :text
55     t.column "updated_at", :datetime
56   end
57
58   add_index "sessions", ["sessid"], :name => "session_index"
59
60   create_table "sitealizer", :force => true do |t|
61     t.column "path",       :string
62     t.column "ip",         :string
63     t.column "referer",    :string
64     t.column "language",   :string
65     t.column "user_agent", :string
66     t.column "created_at", :datetime
67     t.column "created_on", :date
68   end
69
70   create_table "skin_pictures", :force => true do |t|
71     t.column "filename",     :string
72     t.column "content_type", :string
73     t.column "size",         :integer
74     t.column "width",        :integer
75     t.column "height",       :integer
76     t.column "created_at",   :datetime
77     t.column "user_id",      :integer
78   end
79
80   create_table "tokens", :force => true do |t|
81     t.column "token",   :string,  :limit => 100, :default => "", :null => false
82     t.column "vote_id", :integer,                                :null => false
83   end
84
85   add_index "tokens", ["vote_id"], :name => "fk_vote_token"
86
87   create_table "users", :force => true do |t|
88     t.column "login",                     :text
89     t.column "ip",                        :text,                   :default => "", :null => false
90     t.column "email",                     :text
91     t.column "crypted_password",          :string,   :limit => 40
92     t.column "salt",                      :string,   :limit => 40
93     t.column "created_at",                :datetime
94     t.column "updated_at",                :datetime
95     t.column "remember_token",            :text
96     t.column "remember_token_expires_at", :datetime
97   end
98
99   create_table "voters", :force => true do |t|
100     t.column "email",       :string,  :limit => 100
101     t.column "password",    :string,  :limit => 100
102     t.column "contacted",   :integer, :limit => 4,   :default => 0,  :null => false
103     t.column "election_id", :integer,                                :null => false
104     t.column "session_id",  :string,  :limit => 32
105     t.column "ipaddress",   :string,  :limit => 32
106     t.column "type",        :string,  :limit => 100, :default => "", :null => false
107   end
108
109   add_index "voters", ["election_id"], :name => "fk_election_voter"
110
111   create_table "votes", :force => true do |t|
112     t.column "voter_id",  :integer
113     t.column "confirmed", :integer,  :limit => 4, :default => 0, :null => false
114     t.column "time",      :datetime
115   end
116
117   add_index "votes", ["voter_id"], :name => "fk_vote_voter"
118
119 end

Benjamin Mako Hill || Want to submit a patch?