OSDN Git Service

t#31486:add t and caption on ground
authoryasushiito <yas@pen-chan.jp>
Sat, 8 Jun 2013 04:48:18 +0000 (13:48 +0900)
committeryasushiito <yas@pen-chan.jp>
Sat, 8 Jun 2013 04:48:18 +0000 (13:48 +0900)
db/migrate/20130607101909_move_balloon_caption_to_sb.rb [new file with mode: 0644]

diff --git a/db/migrate/20130607101909_move_balloon_caption_to_sb.rb b/db/migrate/20130607101909_move_balloon_caption_to_sb.rb
new file mode 100644 (file)
index 0000000..fef797d
--- /dev/null
@@ -0,0 +1,11 @@
+class MoveBalloonCaptionToSb < ActiveRecord::Migration
+  def up
+    add_column :speech_balloons, :caption, :string
+    remove_column :balloons, :caption
+  end
+
+  def down
+    remove_column :speech_balloons, :caption
+    add_column :balloons, :caption, :string
+  end
+end