Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update renaming of access_hash to token.

Matthew Kennedy2a86f56dc89a
diff --git a/core/db/migrate/20210902110754_rename_column_access_hash_to_token.rb b/core/db/migrate/20210902110754_rename_column_access_hash_to_token.rb
index 45a4fe532e..ab83e9732c 100644
--- a/core/db/migrate/20210902110754_rename_column_access_hash_to_token.rb
+++ b/core/db/migrate/20210902110754_rename_column_access_hash_to_token.rb
@@ -1,7 +1,7 @@
class RenameColumnAccessHashToToken < ActiveRecord::Migration[5.2]
def change
if table_exists?(:spree_wishlists)
- t.rename :access_hash, :token if column_exists?(:spree_wishlists, :access_hash)
+ rename_column(:spree_wishlists, :access_hash, :token) if column_exists?(:spree_wishlists, :access_hash)
end
end
end