20200608113046_add_sign_in_token_to_users.rb 291 B

123456789101112
  1. # frozen_string_literal: true
  2. class AddSignInTokenToUsers < ActiveRecord::Migration[5.2]
  3. def change
  4. safety_assured do
  5. change_table(:users, bulk: true) do |t|
  6. t.column :sign_in_token, :string
  7. t.column :sign_in_token_sent_at, :datetime
  8. end
  9. end
  10. end
  11. end