Class: AddDefaultsToType

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

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
# File 'lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb', line 7

def self.down
  change_column :appsettings, :type, :string, :default => nil
  change_column :mods, :type, :string, :default => nil
end

.upObject



2
3
4
5
# File 'lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb', line 2

def self.up
  change_column :appsettings, :type, :string, :default => "Appsetting"
  change_column :mods, :type, :string, :default => "Mod"
end