Sha256: dfc132b00ca66f7665e92c037f553b59d6b66e199b0cf9f69db03f22c632e395

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 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 :run_data_miner_on_belongs_to_associations
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pet-0.0.10 lib/pet/data.rb