Sha256: d835db4ce5bc43478aed9a587906f7420c1e7b20d2273bb71c4fc17a9b6dbe0c
Contents?: true
Size: 898 Bytes
Versions: 13
Compression:
Stored size: 898 Bytes
Contents
# frozen_string_literal: true require "rails/generators" require "rails/generators/active_record" module Doorkeeper # Generates migration to add reference to owner of the # Doorkeeper application. # class ApplicationOwnerGenerator < ::Rails::Generators::Base include ::Rails::Generators::Migration source_root File.expand_path("templates", __dir__) desc "Provide support for client application ownership." 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 self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end private def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end
Version data entries
13 entries across 13 versions & 1 rubygems