Sha256: c609a8caf5c5446828b519652f04410b7b026180659a65c2417a1713ffca4d78
Contents?: true
Size: 493 Bytes
Versions: 12
Compression:
Stored size: 493 Bytes
Contents
# Override rails database tasks since vertica database cannot be dropped/created # with commands from the appliation ::Rake::Task["db:test:purge"].clear if ::Rake::Task.task_defined?("db:test:purge") namespace :db do namespace :test do task :purge => [:environment, :load_config] do ::ActiveRecord::Base.establish_connection(:test) ::ActiveRecord::Base.connection.tables.each do |table| ::ActiveRecord::Base.connection.drop_table(table) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems