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

Version Path
activerecord-jdbcvertica-adapter-0.6.2.pre1 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.3.0.pre1 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.3.0.pre0 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.2.0 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.1.2 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.1.1 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.1.0 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.0.9 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.0.8 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.0.7 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.0.6 lib/tasks/vertica_database_tasks.rake
activerecord-jdbcvertica-adapter-0.0.5 lib/tasks/vertica_database_tasks.rake