OSDN Git Service

t#30009:fix views
[pettanr/pettanr.git] / db / migrate / 20121106083518_add_caption_on_panel_pictures.rb
diff --git a/db/migrate/20121106083518_add_caption_on_panel_pictures.rb b/db/migrate/20121106083518_add_caption_on_panel_pictures.rb
new file mode 100644 (file)
index 0000000..178c493
--- /dev/null
@@ -0,0 +1,9 @@
+class AddCaptionOnPanelPictures < ActiveRecord::Migration
+  def up
+    add_column :panel_pictures, :caption, :string
+  end
+
+  def down
+    remove_column :panel_pictures, :caption
+  end
+end