Class: Change3ColumnsMods

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/six-updater-web/db/migrate/20100518094056_change3_columns_mods.rb

Class Method Summary collapse

Class Method Details

.downObject



8
9
10
11
12
# File 'lib/six-updater-web/db/migrate/20100518094056_change3_columns_mods.rb', line 8

def self.down
  remove_column :mods, :size
  remove_column :mods, :size_wd
  remove_column :mods, :updated_version
end

.upObject



2
3
4
5
6
# File 'lib/six-updater-web/db/migrate/20100518094056_change3_columns_mods.rb', line 2

def self.up
  add_column :mods, :size, :integer, :default => 0
  add_column :mods, :size_wd, :integer, :default => 0
  add_column :mods, :updated_version, :datetime
end