X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=db%2Fmigrate%2F20080724075409_create_products.rb;fp=db%2Fmigrate%2F20080724075409_create_products.rb;h=6b51c3ff3af9991e25d07c74edcee6233e63bb24;hb=e580d4626176c8deb6f44fec7e66f980b5923b29;hp=0000000000000000000000000000000000000000;hpb=28668145b30d983f624bebb24e9ac9c23d9b13cd;p=depot.git

diff --git a/db/migrate/20080724075409_create_products.rb b/db/migrate/20080724075409_create_products.rb
new file mode 100644
index 0000000..6b51c3f
--- /dev/null
+++ b/db/migrate/20080724075409_create_products.rb
@@ -0,0 +1,15 @@
+class CreateProducts < ActiveRecord::Migration
+  def self.up
+    create_table :products do |t|
+      t.string :title
+      t.text :description
+      t.string :image_url
+
+      t.timestamps
+    end
+  end
+
+  def self.down
+    drop_table :products
+  end
+end