FEATURE: remove support for legacy auth tokens

This commit is contained in:
Sam
2018-05-04 10:11:58 +10:00
parent 62a8904729
commit 3a06cb461e
5 changed files with 22 additions and 31 deletions

View File

@@ -94,6 +94,17 @@ Migration::ColumnDropper.drop(
}
)
Migration::ColumnDropper.drop(
table: 'user_auth_tokens',
after_migration: 'RemoveLegacyAuthToken',
columns: %w[
legacy
],
on_drop: ->() {
STDERR.puts 'Removing user_auth_token legacy column!'
}
)
# User for the smoke tests
if ENV["SMOKE"] == "1"
UserEmail.seed do |ue|