In the middle of adding custom theme supports. Skin_pictures table added to store...
[selectricity] / 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 (file)
index 0000000..07c69e0
--- /dev/null
@@ -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

Benjamin Mako Hill || Want to submit a patch?