Sha256: 7486274ef286ba64e59ddc58a2c1713f0adc3ef16f18cd0429b8b098d1b0fba9

Contents?: true

Size: 276 Bytes

Versions: 3

Compression:

Stored size: 276 Bytes

Contents

namespace :db do
  desc 'Generate all the database objects of the current project'
  task create_objects: :environment do
    PgObjects::Manager.new.load_files.create_objects
  end
end

require 'rake/hooks'

before 'db:migrate' do
  Rake::Task['db:create_objects'].invoke
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_objects-0.2.4 lib/tasks/pg_objects_tasks.rake
pg_objects-0.2.3 lib/tasks/pg_objects_tasks.rake
pg_objects-0.2.1 lib/tasks/pg_objects_tasks.rake