Sha256: a11c80034179cc4b40f7e23ee43810e8127437fcf6bd3d6fe5b370b26ace7f85
Contents?: true
Size: 585 Bytes
Versions: 134
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true class AddConfirmableToDevise < ActiveRecord::Migration[5.0] def up add_column :decidim_users, :confirmation_token, :string add_column :decidim_users, :confirmed_at, :datetime add_column :decidim_users, :confirmation_sent_at, :datetime add_column :decidim_users, :unconfirmed_email, :string add_index :decidim_users, :confirmation_token, unique: true execute("UPDATE decidim_users SET confirmed_at = NOW()") end def down remove_columns :decidim_users, :confirmation_token, :confirmed_at, :confirmation_sent_at end end
Version data entries
134 entries across 134 versions & 2 rubygems