batchy 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/batchy/batch.rb CHANGED
@@ -10,8 +10,8 @@ module Batchy
10
10
  attr_reader :ignore_callbacks
11
11
 
12
12
  validates_presence_of :name
13
- belongs_to :parent, :class_name => 'Batchy::Batch', :primary_key => :id, :foreign_key => :batch_id
14
- has_many :children, :primary_key => :id, :foreign_key => :batch_id, :class_name => 'Batchy::Batch'
13
+ belongs_to :parent, :class_name => 'Batchy::Batch', :primary_key => :id, :foreign_key => :parent_id
14
+ has_many :children, :primary_key => :id, :foreign_key => :parent_id, :class_name => 'Batchy::Batch'
15
15
 
16
16
  serialize :error
17
17
 
@@ -1,3 +1,3 @@
1
1
  module Batchy
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -10,7 +10,7 @@ class CreateBatchyBatches < ActiveRecord::Migration
10
10
  table.integer :pid # Process ID of the current batch
11
11
  table.string :name # Name of the batch job
12
12
  table.string :guid # Field to be used for unique identification of the calling job
13
- table.integer :batch_id # Self-referential ID for identifying parent batches
13
+ table.integer :parent_id # Self-referential ID for identifying parent batches
14
14
  table.timestamps
15
15
  end
16
16
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: batchy
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.8
5
+ version: 0.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bob Briski
@@ -166,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - ">="
168
168
  - !ruby/object:Gem::Version
169
- hash: 2217282660079083071
169
+ hash: 1248206433675527329
170
170
  segments:
171
171
  - 0
172
172
  version: "0"
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
176
  - - ">="
177
177
  - !ruby/object:Gem::Version
178
- hash: 2217282660079083071
178
+ hash: 1248206433675527329
179
179
  segments:
180
180
  - 0
181
181
  version: "0"