Sha256: 91b64aa62e7e25e1c7b931dfaeaf36d34211344b3edc31b00306da0104c3ee5d
Contents?: true
Size: 527 Bytes
Versions: 6
Compression:
Stored size: 527 Bytes
Contents
class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration def self.up create_table(:<%= table_name %>) do |t| t.authenticable t.confirmable t.recoverable t.rememberable 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 end def self.down drop_table :<%= table_name %> end end
Version data entries
6 entries across 6 versions & 1 rubygems