Sha256: 85860e010513a181b2a6004d0a438812ba340bafbed302a3935511f40e5e6108
Contents?: true
Size: 565 Bytes
Versions: 17
Compression:
Stored size: 565 Bytes
Contents
class AddActivationToUsers < ActiveRecord::CompatibleLegacyMigration.migration_class def self.up add_column :users, :activation_state, :string, default: nil add_column :users, :activation_token, :string, default: nil add_column :users, :activation_token_expires_at, :datetime, default: nil add_index :users, :activation_token end def self.down remove_index :users, :activation_token remove_column :users, :activation_token_expires_at remove_column :users, :activation_token remove_column :users, :activation_state end end
Version data entries
17 entries across 17 versions & 1 rubygems