Sha256: f40d87c5b0da0fe50d69c7ce48c8bb06eb65ed10c6c03afef296d2f1d7d00470

Contents?: true

Size: 583 Bytes

Versions: 9

Compression:

Stored size: 583 Bytes

Contents

require 'rails/generators/active_record'

module Doorkeeper
  module OpenidConnect
    class MigrationGenerator < ::Rails::Generators::Base
      include ::Rails::Generators::Migration
      source_root File.expand_path('../templates', __FILE__)
      desc 'Installs Doorkeeper OpenID Connect migration file.'

      def install
        migration_template 'migration.rb', 'db/migrate/create_doorkeeper_openid_connect_tables.rb'
      end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.5.2 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.5.1 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.5.0 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.4.0 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.3.0 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.2.0 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.1.2 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.1.1 lib/generators/doorkeeper/openid_connect/migration_generator.rb
doorkeeper-openid_connect-1.1.0 lib/generators/doorkeeper/openid_connect/migration_generator.rb