Class: Doorkeeper::ApplicationOwnerGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



12
13
14
# File 'lib/generators/doorkeeper/application_owner_generator.rb', line 12

def self.next_migration_number(dirname)
  ActiveRecord::Generators::Base.next_migration_number(dirname)
end

Instance Method Details

#application_ownerObject



8
9
10
# File 'lib/generators/doorkeeper/application_owner_generator.rb', line 8

def application_owner
  migration_template 'add_owner_to_application_migration.rb', 'db/migrate/add_owner_to_application.rb'
end