class Doorkeeper::ApplicationOwnerGenerator


Doorkeeper application.
Generates migration to add reference to owner of the

def self.next_migration_number(dirname)

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

def application_owner

def application_owner
  migration_template(
    "add_owner_to_application_migration.rb.erb",
    "db/migrate/add_owner_to_application.rb",
    migration_version: migration_version,
  )
end

def migration_version

def migration_version
  "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]"
end