Sha256: 982ce7c95e0a38141db30f5261ff7c56213d802ef08f0f2ee424b0a4340f26c1

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

# This migration comes from alchemy (originally 20150906195818)
class AddLocaleToAlchemyLanguages < ActiveRecord::Migration
  def change
    add_column :alchemy_languages, :locale, :string
    execute \
      "UPDATE #{Alchemy::Language.table_name} SET locale = language_code WHERE locale IS NULL;"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy-devise-3.6.0 spec/dummy/db/migrate/20160518190421_add_locale_to_alchemy_languages.alchemy.rb
alchemy-devise-3.5.0 spec/dummy/db/migrate/20160518190421_add_locale_to_alchemy_languages.alchemy.rb
alchemy-devise-3.5.0.beta spec/dummy/db/migrate/20160518190421_add_locale_to_alchemy_languages.alchemy.rb
alchemy-devise-3.4.0 spec/dummy/db/migrate/20160518190421_add_locale_to_alchemy_languages.alchemy.rb
alchemy-devise-3.3.0 spec/dummy/db/migrate/20160518190421_add_locale_to_alchemy_languages.alchemy.rb