class Doorkeeper::MigrationGenerator
Copies main Doorkeeper migration into parent Rails application.
def self.next_migration_number(dirname)
def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end
def install
def install migration_template( "migration.rb.erb", "db/migrate/create_doorkeeper_tables.rb", migration_version: migration_version, ) end
def migration_version
def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end