Sha256: 909a76fde7f417bcdcaca439c3745026c60230332f29af10fab43327058ab267

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

ActiveRecord::Schema.define(:version => 0) do

  create_table :mt_batch_jobs, :force => true do |t|
    t.string    :file,              :null => false
    t.string    :worker_name,       :null => false
    t.integer   :total_count
    t.integer   :finished_count,    :null => false, :default => 0
    t.column    :status, 'char(8)', :null => false, :default => Qwirk::Batch::JobStatus::INITED
    t.datetime  :created_at,        :null => false
    t.datetime  :updated_at,        :null => false
  end
  add_index :mt_batch_jobs, [:file, :worker_name]

  create_table :mt_outstanding_records, :force => true do |t|
    t.integer   :batch_job_id,      :null => false
    t.integer   :file_position,     :null => false
  end
  add_index :mt_outstanding_records, [:batch_job_id]

  create_table :mt_failed_records, :force => true do |t|
    t.integer   :batch_job_id,      :null => false
    t.integer   :file_position,     :null => false
    t.string    :message,           :null => false
  end
  add_index :mt_failed_records, [:batch_job_id]


end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qwirk-0.2.4 lib/rails/generators/qwirk/templates/schema.rb
qwirk-0.2.3 lib/rails/generators/qwirk/templates/schema.rb
qwirk-0.2.2 lib/rails/generators/qwirk/templates/schema.rb
qwirk-0.2.1 lib/rails/generators/qwirk/templates/schema.rb
qwirk-0.2.0 lib/rails/generators/qwirk/templates/schema.rb
qwirk-0.1.0 lib/rails/generators/qwirk/templates/schema.rb
qwirk-0.0.1 lib/rails/generators/qwirk/templates/schema.rb