Class: CallbackRequestBootstrap::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/callback_request_bootstrap/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(path) ⇒ Object



14
15
16
17
# File 'lib/generators/callback_request_bootstrap/install_generator.rb', line 14

def self.next_migration_number(path)
  #Time.now.utc.strftime("%Y%m%d%H%M%S")

  ActiveRecord::Generators::Base.next_migration_number(path)
end

Instance Method Details

#create_migrationsObject



19
20
21
# File 'lib/generators/callback_request_bootstrap/install_generator.rb', line 19

def create_migrations
  migration_template 'migrations/create_requests.rb', 'db/migrate/create_requests.rb'
end