Sha256: 6dea77ec5aba3adb655771317e071a8f251537a9b853a9e397312b68c26d77d0

Contents?: true

Size: 338 Bytes

Versions: 9

Compression:

Stored size: 338 Bytes

Contents

class Create<%= user_plural_class_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= user_plural_name %> do |t|
      t.string :username
      t.string :email
      t.string :password_hash
      t.string :password_salt
      t.timestamps
    end
  end

  def self.down
    drop_table :<%= user_plural_name %>
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
zoo-generators-0.1.5 lib/generators/zoo/authentication/templates/migration.rb
zoo-generators-0.1.4 lib/generators/zoo/authentication/templates/migration.rb
zoo-generators-0.1.3 lib/generators/zoo/authentication/templates/migration.rb
zoo-generators-0.1.2 lib/generators/zoo/authentication/templates/migration.rb
zoo-generators-0.1.1 lib/generators/zoo/authentication/templates/migration.rb
zoo-generators-0.1.0 lib/generators/zoo/authentication/templates/migration.rb
redis-friendships-0.2 lib/generators/redis_friendships/templates/user_migration.rb
redis-friendships-0.1 lib/generators/redis_friendships/templates/user_migration.rb
redis-messages-0.1 lib/generators/redis_messages/templates/user_migration.rb