Skip to content

Commit 2b2e0de

Browse files
committed
Remove unused authentication_token column
This column dates back to 2013, when token authentication was removed from Devise. We should not keep it. This allows new stores to start without the unused column, while old stores can still use any tokens they might be using.
1 parent 361b739 commit 2b2e0de

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

db/migrate/20101026184950_rename_columns_for_devise.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ def up
1414
rename_column :spree_users, :last_login_at, :last_sign_in_at
1515
rename_column :spree_users, :current_login_ip, :current_sign_in_ip
1616
rename_column :spree_users, :last_login_ip, :last_sign_in_ip
17-
add_column :spree_users, :authentication_token, :string
1817
add_column :spree_users, :unlock_token, :string
1918
add_column :spree_users, :locked_at, :datetime
2019
remove_column :spree_users, :openid_identifier
2120
end
2221

2322
def down
24-
remove_column :spree_users, :authentication_token
2523
remove_column :spree_users, :locked_at
2624
remove_column :spree_users, :unlock_token
2725
rename_column :spree_users, :last_sign_in_ip, :last_login_ip

0 commit comments

Comments
 (0)