Class: Change3ColumnsSystemSettings

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

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
13
14
15
16
# File 'lib/six-updater-web/db/migrate/20090928163562_change3_columns_system_settings.rb', line 10

def self.down
  remove_column :system_settings, :favorite_preset
  remove_column :system_settings, :favorite_server
  remove_column :system_settings, :favorite_action
  remove_column :system_settings, :favorite_settings_profile
  remove_column :system_settings, :inweb
end

.upObject



2
3
4
5
6
7
8
# File 'lib/six-updater-web/db/migrate/20090928163562_change3_columns_system_settings.rb', line 2

def self.up
  add_column :system_settings, :favorite_preset, :string, :limit => 36
  add_column :system_settings, :favorite_server, :string, :limit => 36
  add_column :system_settings, :favorite_action, :string, :limit => 36
  add_column :system_settings, :favorite_settings_profile, :string, :limit => 36
  add_column :system_settings, :inweb, :boolean
end