OSDN Git Service

v07
[pettanr/pettanr.git] / db / migrate / 20120815045014_rm_default_size_on_comic.rb
1 class RmDefaultSizeOnComic < ActiveRecord::Migration
2   def up
3     remove_column :comics, :width
4     remove_column :comics, :height
5   end
6
7   def down
8     add_column :comics, :width, :integer , :null => false, :default => 0
9     add_column :comics, :height, :integer , :null => false, :default => 0
10   end
11 end