Class: AutoFacebook::Generators::UserGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AutoFacebook::Generators::UserGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/auto_facebook/user/user_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.next_migration_number(dirname) ⇒ Object
17 18 19 |
# File 'lib/generators/auto_facebook/user/user_generator.rb', line 17 def self.next_migration_number(path) @migration_number = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i.to_s end |
Instance Method Details
#create_migration_file ⇒ Object
13 14 15 |
# File 'lib/generators/auto_facebook/user/user_generator.rb', line 13 def create_migration_file migration_template "migration.rb", "db/migrate/add_fb_id_to_user.rb" end |