Permalink
Browse files

Check if User is defined on ResizeApiKeyField Migration (like others)

  • Loading branch information...
1 parent 6314bbc commit a7f934e3d37f5c87af16915392e952abfea5b859 @beneggett beneggett committed with radar Jun 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 api/db/migrate/20120411123334_resize_api_key_field.rb
@@ -1,5 +1,7 @@
class ResizeApiKeyField < ActiveRecord::Migration
def change
- change_column :spree_users, :api_key, :string, :limit => 48
+ unless defined?(User)
+ change_column :spree_users, :api_key, :string, :limit => 48
+ end
end
end

0 comments on commit a7f934e

Please sign in to comment.