You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm following the same steps that you are and came across your post from googling the error. How exactly did you run this in the console and skip the change to stock movements?
I created a fresh Rails app, installed spree, installed spree_multi_tenant following the instructions in the readme. Using Rails 4.0.4 and Ruby 2.0.0.
When I run the create_tenant_and_assign, the variants don't get assigned a tenant_id because it fails at StockMovement because it is read only:
Spree::StockMovement Load (0.2ms) SELECT "spree_stock_movements".* FROM "spree_stock_movements"
(0.0ms) begin transaction
(0.0ms) rollback transaction
ActiveRecord::ReadOnlyRecord: ActiveRecord::ReadOnlyRecord
This appears to be the only field with the problem, when I run this code in the console and skip StockMovement, it completes successfully.
I am new to Spree so I can't offer any suggestions or a patch...
The text was updated successfully, but these errors were encountered: