Sha256: cd5348951564a9a7c53284ee177592eaa3d4aa149a9278f9237f24b2e39d6411

Contents?: true

Size: 615 Bytes

Versions: 5

Compression:

Stored size: 615 Bytes

Contents

namespace :db do
  desc 'Also create shared_extensions Schema'
  task :extensions => :environment  do
    # Create Schema
    at_exit {
      ActiveRecord::Base.connection.execute 'CREATE SCHEMA IF NOT EXISTS shared_extensions;'
      # Enable Hstore
      ActiveRecord::Base.connection.execute 'CREATE EXTENSION IF NOT EXISTS HSTORE SCHEMA shared_extensions;'
      # Enable UUID-OSSP
      ActiveRecord::Base.connection.execute 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp" SCHEMA shared_extensions;'
    } 
  end
end

Rake::Task["db:create"].enhance [:extensions]
Rake::Task["db:test:purge"].enhance  [:extensions]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zuora_connect-3.1.2 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.1.pre.c lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.1.pre.b lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.1.pre.a lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.1 lib/tasks/zuora_connect_tasks.rake