Sha256: 9ea7baa11f5361d3b68a8a77d600448b135a1fafa65032a4759e3ef47c509e12
Contents?: true
Size: 554 Bytes
Versions: 16
Compression:
Stored size: 554 Bytes
Contents
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
16 entries across 16 versions & 1 rubygems