Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running "rake spree_multi_tenant:create_tenant_and_assign" fails because StockMovement is read-only #11

Open
pawlowski opened this issue Mar 30, 2014 · 1 comment

Comments

@pawlowski
Copy link

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...

@brandon-a-hay
Copy link

Hi Pawlowski,

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?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants