Sha256: 60d094e0b53f0101bddeebd0d739d7ecb8fe1c17c86a30f70963f1fc461d565a

Contents?: true

Size: 628 Bytes

Versions: 7

Compression:

Stored size: 628 Bytes

Contents

require 'data_miner'

module BrighterPlanet
  module Pet
    module Data
      def self.included(base)
        base.data_miner do
          schema do
            string   'name'
            string  'species_id'
            string  'breed_id'
            string  'gender_id'
            float    'weight'
            date     'acquisition'
            date     'retirement'
          end

          process "pull orphans" do
            BreedGender.run_data_miner!
          end

          process "pull dependencies" do
            run_data_miner_on_belongs_to_associations
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pet-0.0.9 lib/pet/data.rb
pet-0.0.8 lib/pet/data.rb
pet-0.0.7 lib/pet/data.rb
pet-0.0.6 lib/pet/data.rb
pet-0.0.5 lib/pet/data.rb
pet-0.0.4 lib/pet/data.rb
pet-0.0.3 lib/pet/data.rb