Sha256: bedc62006cc11ff8cbb458daa3ed404efb0f3beadcefd35265ae9fe16b5ec304

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

class Create<%= plural_class_name %> < ActiveRecord::Migration  
  def self.up  
    create_table :<%= plural_name %> do |t|  
      t.string :username  
      t.string :email  
      t.boolean :admin, :default => false
      t.string :crypted_password  
      t.string :password_salt  
      t.string :persistence_token  
      t.timestamps  
    end  
  end  
  
  def self.down  
    drop_table :users  
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 lib/generators/humpyard/auth/templates/authlogic/migration.rb