For some reason this migration did not run when I did the upgrade. I ran
the following in the console and it fixed the issue for me:

m = ActiveRecord::Migration.new
m.rename_column :spree_users, :api_key, :spree_api_key

- Mike
On Tuesday, September 25, 2012 4:56:02 PM UTC-4, laurens wrote:

Hi!

I updated to spree 1.2 and added spree_auth_devise for authentification.

Everything seems to work fine, except editing a user fails with the
exception

undefined method `spree_api_key`

Looking into the database, I saw the field in question is still called `
api_key`, without the spree_ prefix.

Renaming the field resolves the issue, but
is there a proper way to fix this, like a migration?

Thanks,
Laurens
--

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedJan 14, '13 at 5:50p
activeJan 14, '13 at 5:50p
posts1
users1
websitespreecommerce.com
irc#RubyOnRails

1 user in discussion

Michael Bianco: 1 post

People

Translate

site design / logo © 2023 Grokbase