Sha256: 694297adeec2c94cb5d74614db43b27025bd7d7beddafc241247c0d066cc1c56

Contents?: true

Size: 393 Bytes

Versions: 9

Compression:

Stored size: 393 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 :persistence_token
      t.string :crypted_password
      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 & 1 rubygems

Version Path
flexi_generators-0.2.10 lib/generators/flexi/auth/templates/migration.rb
flexi_generators-0.2.8 lib/generators/flexi_auth/templates/migration.rb
flexi_generators-0.2.6 lib/generators/flexi_auth/templates/migration.rb
flexi_generators-0.2.5 lib/generators/flexi_auth/templates/migration.rb
flexi_generators-0.2.4 lib/generators/flexi_auth/templates/migration.rb
flexi_generators-0.2.3 lib/generators/flexi_auth/templates/migration.rb
flexi_generators-0.2.2 lib/generators/flexi_auth/templates/migration.rb
flexi_generators-0.2.1 lib/generators/flexi_auth/templates/migration.rb
flexi_generators-0.2.0 lib/generators/flexi_auth/templates/migration.rb