Sha256: 34e7753ef6dd447e15a44c9693f79135f5f3a7d467df0df798f4bdc202f7606e

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

require 'rails/generators'

if ActiveRecord::version >= Gem::Version.new("5.0.2")
	# This is a monkey patch to work around the flakey design of ActiveRecord migrations.
	require 'rails/generators/active_record/migration/migration_generator'

	class ::ActiveRecord::Generators::MigrationGenerator
		def db_migrate_path
			ActiveRecord::Migrations.migrations_root
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-migrations-1.2.1 lib/active_record/migrations/tasks/db/generators.rb