Sha256: a044f5c58bf2dbb835407f1db346433e0b57a4595c7d748b51ffc9cb2698418f
Contents?: true
Size: 677 Bytes
Versions: 16
Compression:
Stored size: 677 Bytes
Contents
class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration def self.up create_table(:<%= table_name %>) do |t| t.authenticatable :encryptor => :sha1, :null => false t.confirmable t.recoverable t.rememberable t.trackable # t.lockable t.timestamps end add_index :<%= table_name %>, :email, :unique => true add_index :<%= table_name %>, :confirmation_token, :unique => true add_index :<%= table_name %>, :reset_password_token, :unique => true # add_index :<%= table_name %>, :unlock_token, :unique => true end def self.down drop_table :<%= table_name %> end end
Version data entries
16 entries across 16 versions & 3 rubygems