Sha256: 15692d7f88ae0b011c7b87f6f4f7eee34984757d997e184fb38b23cf5e2261ca

Contents?: true

Size: 303 Bytes

Versions: 16

Compression:

Stored size: 303 Bytes

Contents

class AddSelectedLocaleToSpreeUsers < ActiveRecord::Migration[6.1]
  def change
    if Spree.user_class.present?
      users_table_name = Spree.user_class.table_name
      add_column users_table_name, :selected_locale, :string unless column_exists?(users_table_name, :selected_locale)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_core-4.10.1 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.10.0 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.9.0 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.8.3 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.8.2 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.7.3 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.6.6 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.6.5 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.7.2 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.7.1 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.6.4 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.7.0 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.6.3 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.6.2 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.6.1 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb
spree_core-4.6.0 db/migrate/20221215151408_add_selected_locale_to_spree_users.rb