class CallbackRequestBootstrap::Generators::InstallGenerator
Public Class Methods
next_migration_number(path)
click to toggle source
# 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
Public Instance Methods
create_migrations()
click to toggle source
# 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