Merge pull request #5172 from kristinalim/feature/5170-increase_locale_chars_in_spree_users

Increase max characters for locale in spree_users
This commit is contained in:
Maikel
2020-04-16 18:18:45 +10:00
committed by GitHub
2 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
class IncreaseCharactersOfLocaleInSpreeUsers < ActiveRecord::Migration
def up
change_column :spree_users, :locale, :string, limit: 6
end
def down
change_column :spree_users, :locale, :string, limit: 5
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20200327105910) do
ActiveRecord::Schema.define(:version => 20200406085833) do
create_table "adjustment_metadata", :force => true do |t|
t.integer "adjustment_id"
@@ -1045,7 +1045,7 @@ ActiveRecord::Schema.define(:version => 20200327105910) do
t.datetime "reset_password_sent_at"
t.string "api_key", :limit => 40
t.integer "enterprise_limit", :default => 5, :null => false
t.string "locale", :limit => 5
t.string "locale", :limit => 6
t.string "confirmation_token"
t.datetime "confirmed_at"
t.datetime "confirmation_sent_at"