lib/cloud_crowd/schema.rb in cloud-crowd-0.3.3 vs lib/cloud_crowd/schema.rb in cloud-crowd-0.4.0
- old
+ new
@@ -11,11 +11,11 @@
t.string "callback_url"
t.string "email"
t.datetime "created_at"
t.datetime "updated_at"
end
-
+
create_table "node_records", :force => true do |t|
t.string "host", :null => false
t.string "ip_address", :null => false
t.integer "port", :null => false
t.string "enabled_actions", :default => '', :null => false
@@ -39,12 +39,12 @@
t.datetime "created_at"
t.datetime "updated_at"
end
# Here be indices. After looking, it seems faster not to have them at all.
- #
- # 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", ["worker_pid"], :name => "index_work_units_on_worker_pid"
- # add_index "work_units", ["worker_pid", "status"], :name => "index_work_units_on_worker_pid_and_status"
- # add_index "work_units", ["worker_pid", "node_record_id"], :name => "index_work_units_on_worker_pid_and_node_record_id"
+ #
+ 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", ["worker_pid"], :name => "index_work_units_on_worker_pid"
+ add_index "work_units", ["worker_pid", "status"], :name => "index_work_units_on_worker_pid_and_status"
+ add_index "work_units", ["worker_pid", "node_record_id"], :name => "index_work_units_on_worker_pid_and_node_record_id"
end