Sha256: 4c18adf631a20a438796cb85bb6b8d5592b6dc6a29f32d7d887682117b8c8ba4

Contents?: true

Size: 361 Bytes

Versions: 52

Compression:

Stored size: 361 Bytes

Contents

class AddDefaultsToType < ActiveRecord::Migration
  def self.up
    change_column :appsettings, :type, :string, :default => "Appsetting"
    change_column :mods, :type, :string, :default => "Mod"
  end

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

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.14 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.13 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.12 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.11 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.10 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.9 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.8 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.7 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.6 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.5 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.4 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.3 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.2 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.1 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.24.0 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.23.7 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.23.6 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.23.5 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
six-updater-web-0.23.4 lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb