Sha256: 625e7383d3a4b71a50a194c8671d39378d5b5b0f6d193fd3b3459c98afb65f6a
Contents?: true
Size: 700 Bytes
Versions: 7
Compression:
Stored size: 700 Bytes
Contents
require 'rails/generators/active_record' class Doorkeeper::MigrationGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc 'Installs Doorkeeper migration file.' def install migration_template( 'migration.rb.erb', 'db/migrate/create_doorkeeper_tables.rb', migration_version: migration_version ) end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end private def migration_version if ActiveRecord::VERSION::MAJOR >= 5 "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end
Version data entries
7 entries across 7 versions & 1 rubygems