Sha256: 452c13ef23d7909ec8aac5724e3c20ae7a4a70615f8d6f93193c1f1b65d6fc12
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require 'activerecord-clean-db-structure/clean_dump' Rake::Task['db:structure:dump'].enhance do Rake::Task['clean_db_structure'].invoke end task :clean_db_structure do filename = ENV['DB_STRUCTURE'] || File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, 'structure.sql') cleaner = ActiveRecordCleanDbStructure::CleanDump.new(File.read(filename)) cleaner.run File.write(filename, cleaner.dump) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-clean-db-structure-0.1.0 | lib/activerecord-clean-db-structure/tasks/clean_db_structure.rake |