Sha256: 8f95c572faf98eb962f845df20e151898913ec436ba60aedb7ceab37dc23b0ee
Contents?: true
Size: 407 Bytes
Versions: 6
Compression:
Stored size: 407 Bytes
Contents
require 'active_record' #Can't wrap these requests in a ActiveRecord Transaction, because DDL commands can not be rolled back per MySQL documentation namespace :db do namespace :audit do task :create_audit_tables do ActiveRecord::Base.connection.tables.each do |table| next if table == "schema_migrations" ActiveRecordAuditor.build_audit_table(table) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems