Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

api_key will no longer be added to spree_users table if User const is…

… defined
  • Loading branch information...
commit 04883fcc89bb460aafe2829e01264ef77d57937d 1 parent a4190d3
@radar radar authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 api/db/migrate/20100107141738_add_api_key_to_spree_users.rb
View
4 api/db/migrate/20100107141738_add_api_key_to_spree_users.rb
@@ -1,5 +1,7 @@
class AddApiKeyToSpreeUsers < ActiveRecord::Migration
def change
- add_column :spree_users, :api_key, :string, :limit => 40
+ unless defined?(User)
+ add_column :spree_users, :api_key, :string, :limit => 40
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.