Sha256: 9d9b776792f13e075c0b6554fa411cee01a693420c9d04878929608d4f66e4b1
Contents?: true
Size: 542 Bytes
Versions: 6
Compression:
Stored size: 542 Bytes
Contents
class AddActivationToUsers < ActiveRecord::Migration 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
6 entries across 6 versions & 3 rubygems