Sha256: 5dc81456abdbca2646da428bfc258b6f46a5ddae170a500f36f744f60273feaa
Contents?: true
Size: 522 Bytes
Versions: 22
Compression:
Stored size: 522 Bytes
Contents
if defined?(RailsERD) Rake::Task['db:migrate'].enhance do ENV['filename'] = 'doc/db_layout' ENV['attributes'] = 'foreign_keys, content, primary_keys, timestamp' excludes = ['ActiveRecord::SchemaMigration'] excludes << 'ActiveRecord::SessionStore::Session' if defined?(ActiveRecord::SessionStore) case Rails::VERSION::MAJOR when 5 excludes << 'ActiveRecord::InternalMetadata' end ENV['exclude'] = excludes.join(',') Rake::Task['erd'].invoke end if Rails.env.development? end
Version data entries
22 entries across 22 versions & 1 rubygems