mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-17 04:34:24 +00:00
Add a migration to change Spree::Users enterprise_limit default value from 1 to 5
This commit is contained in:
committed by
Matt-Yorkley
parent
23d36e3898
commit
ab1ed16435
@@ -0,0 +1,9 @@
|
||||
class ChangeDefaultValueOfSpreeUsersEnterpriseLimit < ActiveRecord::Migration
|
||||
def up
|
||||
change_column :spree_users, :enterprise_limit, :integer, default: 5
|
||||
end
|
||||
|
||||
def down
|
||||
change_column :spree_users, :enterprise_limit, :integer, default: 1
|
||||
end
|
||||
end
|
||||
@@ -1029,7 +1029,7 @@ ActiveRecord::Schema.define(:version => 20180204235108) do
|
||||
t.string "spree_api_key", :limit => 48
|
||||
t.datetime "reset_password_sent_at"
|
||||
t.string "api_key", :limit => 40
|
||||
t.integer "enterprise_limit", :default => 1, :null => false
|
||||
t.integer "enterprise_limit", :default => 5, :null => false
|
||||
t.string "locale", :limit => 5
|
||||
t.string "confirmation_token"
|
||||
t.datetime "confirmed_at"
|
||||
|
||||
Reference in New Issue
Block a user