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.3.2 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.4 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.3.1 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.3.2 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.3.1 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.12 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.3.0 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.3.rc5 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.2 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.1 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.0 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc15 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.11 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc14 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc13 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc11 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc8 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.2.rc7 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.9.1 db/migrate/20120216135355_add_country_code_to_languages.rb
alchemy_cms-2.1.9 db/migrate/20120216135355_add_country_code_to_languages.rb