Sha256: 75f124f633d3b8028364845532c8b6001684f88cfe8b88a9ddbb6ee2098f05e8
Contents?: true
Size: 549 Bytes
Versions: 12
Compression:
Stored size: 549 Bytes
Contents
class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration def self.up create_table(:<%= table_name %>) do |t| t.authenticatable :encryptor => :sha1 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
12 entries across 12 versions & 2 rubygems