Sha256: 90d0c6f70dcfae20b86e08c2130098bd7201fa4e959b7a04ceb759d244cc4ad7

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

class AddAvailableLocalesOnStore < SolidusSupport::Migration[4.2]
  def change
    add_column :spree_stores, :preferences, :text

    reversible do |dir|
      dir.up do
        Spree::Store.reset_column_information
        Spree::Store.all.each do |store|
          store.update_attributes(preferred_available_locales: SolidusI18n::Config.available_locales)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_i18n-1.3.0 db/migrate/20170523151209_add_available_locales_on_store.rb