Sha256: 296d61c1b3a751990125ec846b254afc7c52ea30f40530ea3c383949a0e4c029

Contents?: true

Size: 645 Bytes

Versions: 22

Compression:

Stored size: 645 Bytes

Contents

namespace :db do
  desc 'Also create shared_extensions Schema'
  task :extensions => :environment  do
    # Create Schema
    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 do
  Rake::Task["db:extensions"].invoke
end

Rake::Task["db:test:purge"].enhance do
  Rake::Task["db:extensions"].invoke
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
zuora_connect-3.2.11 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.10 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.9 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.8 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.7 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.6 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.5 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.4 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.3 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.2 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.2.0 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5.pre.g lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5.pre.f lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5.pre.e lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5.pre.d lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5.pre.c lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5.pre.b lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5.pre.a lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.5 lib/tasks/zuora_connect_tasks.rake
zuora_connect-3.1.4 lib/tasks/zuora_connect_tasks.rake