OSDN Git Service

t#29389:rm author id on gc
authoryasushiito <yas@pen-chan.jp>
Wed, 26 Sep 2012 23:15:15 +0000 (08:15 +0900)
committeryasushiito <yas@pen-chan.jp>
Wed, 26 Sep 2012 23:15:15 +0000 (08:15 +0900)
db/migrate/20120926230129_rm_author_id_on_gc.rb [new file with mode: 0644]

diff --git a/db/migrate/20120926230129_rm_author_id_on_gc.rb b/db/migrate/20120926230129_rm_author_id_on_gc.rb
new file mode 100644 (file)
index 0000000..0892e72
--- /dev/null
@@ -0,0 +1,9 @@
+class RmAuthorIdOnGc < ActiveRecord::Migration
+  def up
+    remove_column :ground_colors, :author_id
+  end
+
+  def down
+    add_column :ground_colors, :author_id, :integer , :null => false, :default => 0
+  end
+end