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


15
16
17
# File 'lib/generators/doorkeeper/application_owner_generator.rb', line 15

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

Instance Method Details

#application_ownerObject


8
9
10
11
12
13
# 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