Sha256: 7b9fa6f59d39f888d8ad51d7a32a6f11dd1b5b5d59e1d4426fc10fe404ca6eea

Contents?: true

Size: 385 Bytes

Versions: 29

Compression:

Stored size: 385 Bytes

Contents

class AddCountryCodeToLanguages < ActiveRecord::Migration
  def change
    add_column :alchemy_languages, :country_code, :string
    rename_column :alchemy_languages, :code, :language_code
    remove_index :alchemy_languages, :name => :index_languages_on_code
    add_index :alchemy_languages, :language_code
    add_index :alchemy_languages, [:language_code, :country_code]
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc6 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.8.1 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc3 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.8 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc2 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc1 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.7 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.6 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.5 db/migrate/20120216135355_add_country_code_to_languages.rb