OSDN Git Service

t#2334:add gc offset
[pettanr/pettanr.git] / db / migrate / 20131029021930_add_offset_on_ground_color.rb
1 class AddOffsetOnGroundColor < ActiveRecord::Migration
2   def up
3     add_column :ground_colors, :orientation, :integer, :null => false, :default => 0
4     add_column :ground_colors, :xy, :integer
5     add_column :ground_colors, :wh, :integer
6   end
7
8   def down
9     remove_column :ground_colors, :orientation
10     remove_column :ground_colors, :xy
11     remove_column :ground_colors, :wh
12   end
13 end