Class: Yes::Auth::Generators::Principals::UserGenerator

Inherits:
BaseGenerator
  • Object
show all
Defined in:
lib/yes/auth/generators/principals/user_generator.rb

Overview

Generates the migration for the user principals table

Examples:

rails generate yes:auth:principals:user

Instance Method Summary collapse

Methods inherited from BaseGenerator

#_destination, #_migration_dir, #_migration_file_name, #create, next_migration_number

Instance Method Details

#_source_templateObject



23
24
25
# File 'lib/yes/auth/generators/principals/user_generator.rb', line 23

def _source_template
  'user.erb'
end

#_table_nameObject



19
20
21
# File 'lib/yes/auth/generators/principals/user_generator.rb', line 19

def _table_name
  Yes::Auth::Principals::User.table_name
end