updated and moved ignore file
[selectricity] / db / migrate / 003_add_custom_widget_support.rb
1 class AddCustomWidgetSupport < ActiveRecord::Migration
2   
3   def self.up
4     create_table :skin_pictures, :force => true do |t|
5       t.column :filename,     :string
6       t.column :content_type, :string
7       t.column :size,         :integer
8       t.column :width,        :integer
9       t.column :height,       :integer
10       t.column :created_at,   :datetime
11       t.column :user_id,      :integer
12     end
13     
14     add_column :elections, :embed_custom_string, :string, :default => nil
15     
16   end
17   
18   def self.down
19     drop_table :skin_pictures
20     
21     remove_column :elections, :embed_custom_string   
22   end
23   
24 end

Benjamin Mako Hill || Want to submit a patch?