Sha256: fb597020d640a81aff74b29d23f2c2a276d217e438dd371bc465c72df50777f2

Contents?: true

Size: 1.8 KB

Versions: 3

Compression:

Stored size: 1.8 KB

Contents

# Complete schema for CloudCrowd.
ActiveRecord::Schema.define(:version => 1) do

  create_table "jobs", :force => true do |t|
    t.integer  "status",                      :null => false
    t.text     "inputs",                      :null => false
    t.string   "action",                      :null => false
    t.text     "options",                     :null => false
    t.text     "outputs"
    t.float    "time"
    t.string   "callback_url"
    t.string   "email"
    t.integer  "lock_version", :default => 0, :null => false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "work_units", :force => true do |t|
    t.integer  "status",                          :null => false
    t.integer  "job_id",                          :null => false
    t.text     "input",                           :null => false
    t.string   "action",                          :null => false
    t.integer  "attempts",     :default => 0,     :null => false
    t.integer  "lock_version", :default => 0,     :null => false
    t.integer  "worker_record_id"
    t.float    "time"
    t.text     "output"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
  
  create_table "worker_records", :force => true do |t|
    t.string   "name",          :null => false
    t.string   "thread_status", :null => false
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "jobs", ["status"], :name => "index_jobs_on_status"
  add_index "work_units", ["job_id"], :name => "index_work_units_on_job_id"
  add_index "work_units", ["status", "worker_record_id", "action"], :name => "index_work_units_on_status_and_worker_record_id_and_action"
  add_index "worker_records", ["name"], :name => "index_worker_records_on_name"
  add_index "worker_records", ["updated_at"], :name => "index_worker_records_on_updated_at"

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
documentcloud-cloud-crowd-0.0.6 lib/cloud_crowd/schema.rb
documentcloud-cloud-crowd-0.1.0 lib/cloud_crowd/schema.rb
cloud-crowd-0.1.0 lib/cloud_crowd/schema.rb