class Doorkeeper::RemoveApplicationSecretNotNullConstraint


to bloat the database with redundant secret value.
Generates migration with which drops NOT NULL constraint and allows not

def self.next_migration_number(dirname)

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

def enable_polymorphic_resource_owner

def enable_polymorphic_resource_owner
  migration_template(
    "remove_applications_secret_not_null_constraint.rb.erb",
    "db/migrate/remove_applications_secret_not_null_constraint.rb",
    migration_version: migration_version,
  )
end

def migration_version

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