cartodb-4.42/db/migrate/20200525211833_add_email_verification_to_users.rb
2024-04-06 05:25:13 +00:00

15 lines
371 B
Ruby

require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
add_column :users, :email_verification_token, String, null: true
add_column :users, :email_verification_sent_at, DateTime, null: true
end,
Proc.new do
drop_column :users, :email_verification_token
drop_column :users, :email_verification_sent_at
end
)