X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/6ab290219a55a24ff6047d02cf6c9a03dc096195..947bdc28cd01bc025ffde2af3472b38e5d30f9d1:/db/migrate/003_add_custom_widget_support.rb diff --git a/db/migrate/003_add_custom_widget_support.rb b/db/migrate/003_add_custom_widget_support.rb new file mode 100644 index 0000000..07c69e0 --- /dev/null +++ b/db/migrate/003_add_custom_widget_support.rb @@ -0,0 +1,24 @@ +class AddCustomWidgetSupport < ActiveRecord::Migration + + def self.up + create_table :skin_pictures, :force => true do |t| + t.column :filename, :string + t.column :content_type, :string + t.column :size, :integer + t.column :width, :integer + t.column :height, :integer + t.column :created_at, :datetime + t.column :user_id, :integer + end + + add_column :elections, :embed_custom_string, :string, :default => nil + + end + + def self.down + drop_table :skin_pictures + + remove_column :elections, :embed_custom_string + end + +end