2 # This file is auto-generated from the current state of the database. Instead
3 # of editing this file, please use the migrations feature of Active Record to
4 # incrementally modify your database, and then regenerate this schema definition.
6 # Note that this schema.rb definition is the authoritative source for your
7 # database schema. If you need to create the application database on another
8 # system, you should be using db:schema:load, not running all the migrations
9 # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10 # you'll amass, the slower it'll run and the greater likelihood for issues).
12 # It's strongly recommended to check this file into your version control system.
14 ActiveRecord::Schema.define(:version => 20130326182917) do
16 create_table "api_client_authorizations", :force => true do |t|
17 t.string "api_token", :null => false
18 t.integer "api_client_id", :null => false
19 t.integer "user_id", :null => false
20 t.string "created_by_ip_address"
21 t.string "last_used_by_ip_address"
22 t.datetime "last_used_at"
23 t.datetime "expires_at"
24 t.datetime "created_at"
25 t.datetime "updated_at"
26 t.string "default_owner"
29 add_index "api_client_authorizations", ["api_client_id"], :name => "index_api_client_authorizations_on_api_client_id"
30 add_index "api_client_authorizations", ["api_token"], :name => "index_api_client_authorizations_on_api_token", :unique => true
31 add_index "api_client_authorizations", ["expires_at"], :name => "index_api_client_authorizations_on_expires_at"
32 add_index "api_client_authorizations", ["user_id"], :name => "index_api_client_authorizations_on_user_id"
34 create_table "api_clients", :force => true do |t|
37 t.string "modified_by_client"
38 t.string "modified_by_user"
39 t.datetime "modified_at"
42 t.datetime "created_at"
43 t.datetime "updated_at"
46 add_index "api_clients", ["created_at"], :name => "index_api_clients_on_created_at"
47 add_index "api_clients", ["modified_at"], :name => "index_api_clients_on_modified_at"
48 add_index "api_clients", ["uuid"], :name => "index_api_clients_on_uuid", :unique => true
50 create_table "collections", :force => true do |t|
53 t.datetime "created_at"
54 t.string "modified_by_client"
55 t.string "modified_by_user"
56 t.datetime "modified_at"
57 t.string "portable_data_hash"
59 t.integer "redundancy"
60 t.string "redundancy_confirmed_by_client"
61 t.datetime "redundancy_confirmed_at"
62 t.integer "redundancy_confirmed_as"
63 t.datetime "updated_at"
65 t.text "manifest_text"
68 add_index "collections", ["created_at"], :name => "index_collections_on_created_at"
69 add_index "collections", ["modified_at"], :name => "index_collections_on_modified_at"
70 add_index "collections", ["uuid"], :name => "index_collections_on_uuid", :unique => true
72 create_table "commit_ancestors", :force => true do |t|
73 t.string "repository_name"
74 t.string "descendant", :null => false
75 t.string "ancestor", :null => false
76 t.boolean "is", :default => false, :null => false
77 t.datetime "created_at"
78 t.datetime "updated_at"
81 add_index "commit_ancestors", ["descendant", "ancestor"], :name => "index_commit_ancestors_on_descendant_and_ancestor", :unique => true
83 create_table "commits", :force => true do |t|
84 t.string "repository_name"
87 t.datetime "created_at"
88 t.datetime "updated_at"
91 add_index "commits", ["repository_name", "sha1"], :name => "index_commits_on_repository_name_and_sha1", :unique => true
93 create_table "groups", :force => true do |t|
96 t.datetime "created_at"
97 t.string "modified_by_client"
98 t.string "modified_by_user"
99 t.datetime "modified_at"
102 t.datetime "updated_at"
105 add_index "groups", ["created_at"], :name => "index_groups_on_created_at"
106 add_index "groups", ["modified_at"], :name => "index_groups_on_modified_at"
107 add_index "groups", ["uuid"], :name => "index_groups_on_uuid", :unique => true
109 create_table "job_tasks", :force => true do |t|
112 t.string "modified_by_client"
113 t.string "modified_by_user"
114 t.datetime "modified_at"
121 t.datetime "created_at"
122 t.datetime "updated_at"
125 add_index "job_tasks", ["created_at"], :name => "index_job_tasks_on_created_at"
126 add_index "job_tasks", ["job_uuid"], :name => "index_job_tasks_on_job_uuid"
127 add_index "job_tasks", ["modified_at"], :name => "index_job_tasks_on_modified_at"
128 add_index "job_tasks", ["sequence"], :name => "index_job_tasks_on_sequence"
129 add_index "job_tasks", ["success"], :name => "index_job_tasks_on_success"
130 add_index "job_tasks", ["uuid"], :name => "index_job_tasks_on_uuid", :unique => true
132 create_table "jobs", :force => true do |t|
135 t.string "modified_by_client"
136 t.string "modified_by_user"
137 t.datetime "modified_at"
140 t.string "script_version"
141 t.text "script_parameters"
142 t.string "cancelled_by_client"
143 t.string "cancelled_by_user"
144 t.datetime "cancelled_at"
145 t.datetime "started_at"
146 t.datetime "finished_at"
150 t.datetime "created_at"
151 t.datetime "updated_at"
153 t.string "is_locked_by"
155 t.text "tasks_summary"
156 t.text "resource_limits"
159 add_index "jobs", ["created_at"], :name => "index_jobs_on_created_at"
160 add_index "jobs", ["finished_at"], :name => "index_jobs_on_finished_at"
161 add_index "jobs", ["modified_at"], :name => "index_jobs_on_modified_at"
162 add_index "jobs", ["output"], :name => "index_jobs_on_output"
163 add_index "jobs", ["script"], :name => "index_jobs_on_script"
164 add_index "jobs", ["started_at"], :name => "index_jobs_on_started_at"
165 add_index "jobs", ["submit_id"], :name => "index_jobs_on_submit_id", :unique => true
166 add_index "jobs", ["uuid"], :name => "index_jobs_on_uuid", :unique => true
168 create_table "links", :force => true do |t|
171 t.datetime "created_at"
172 t.string "modified_by_client"
173 t.string "modified_by_user"
174 t.datetime "modified_at"
177 t.string "link_class"
181 t.datetime "updated_at"
185 add_index "links", ["created_at"], :name => "index_links_on_created_at"
186 add_index "links", ["head_kind"], :name => "index_links_on_head_kind"
187 add_index "links", ["head_uuid"], :name => "index_links_on_head_uuid"
188 add_index "links", ["modified_at"], :name => "index_links_on_modified_at"
189 add_index "links", ["tail_kind"], :name => "index_links_on_tail_kind"
190 add_index "links", ["tail_uuid"], :name => "index_links_on_tail_uuid"
191 add_index "links", ["uuid"], :name => "index_links_on_uuid", :unique => true
193 create_table "logs", :force => true do |t|
196 t.string "modified_by_client"
197 t.string "modified_by_user"
198 t.string "object_kind"
199 t.string "object_uuid"
200 t.datetime "event_at"
201 t.string "event_type"
204 t.datetime "created_at"
205 t.datetime "updated_at"
206 t.datetime "modified_at"
209 add_index "logs", ["created_at"], :name => "index_logs_on_created_at"
210 add_index "logs", ["event_at"], :name => "index_logs_on_event_at"
211 add_index "logs", ["event_type"], :name => "index_logs_on_event_type"
212 add_index "logs", ["modified_at"], :name => "index_logs_on_modified_at"
213 add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind"
214 add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid"
215 add_index "logs", ["summary"], :name => "index_logs_on_summary"
216 add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
218 create_table "nodes", :force => true do |t|
221 t.datetime "created_at"
222 t.string "modified_by_client"
223 t.string "modified_by_user"
224 t.datetime "modified_at"
225 t.integer "slot_number"
228 t.string "ip_address"
229 t.datetime "first_ping_at"
230 t.datetime "last_ping_at"
232 t.datetime "updated_at"
235 add_index "nodes", ["created_at"], :name => "index_nodes_on_created_at"
236 add_index "nodes", ["hostname"], :name => "index_nodes_on_hostname", :unique => true
237 add_index "nodes", ["modified_at"], :name => "index_nodes_on_modified_at"
238 add_index "nodes", ["slot_number"], :name => "index_nodes_on_slot_number", :unique => true
239 add_index "nodes", ["uuid"], :name => "index_nodes_on_uuid", :unique => true
241 create_table "pipeline_instances", :force => true do |t|
244 t.datetime "created_at"
245 t.string "modified_by_client"
246 t.string "modified_by_user"
247 t.datetime "modified_at"
248 t.string "pipeline_template_uuid"
252 t.boolean "active", :default => false
253 t.datetime "updated_at"
257 add_index "pipeline_instances", ["created_at"], :name => "index_pipeline_instances_on_created_at"
258 add_index "pipeline_instances", ["modified_at"], :name => "index_pipeline_instances_on_modified_at"
259 add_index "pipeline_instances", ["uuid"], :name => "index_pipeline_instances_on_uuid", :unique => true
261 create_table "pipeline_templates", :force => true do |t|
264 t.datetime "created_at"
265 t.string "modified_by_client"
266 t.string "modified_by_user"
267 t.datetime "modified_at"
270 t.datetime "updated_at"
273 add_index "pipeline_templates", ["created_at"], :name => "index_pipeline_templates_on_created_at"
274 add_index "pipeline_templates", ["modified_at"], :name => "index_pipeline_templates_on_modified_at"
275 add_index "pipeline_templates", ["uuid"], :name => "index_pipeline_templates_on_uuid", :unique => true
277 create_table "specimens", :force => true do |t|
280 t.datetime "created_at"
281 t.string "modified_by_client"
282 t.string "modified_by_user"
283 t.datetime "modified_at"
285 t.datetime "updated_at"
289 add_index "specimens", ["created_at"], :name => "index_specimens_on_created_at"
290 add_index "specimens", ["modified_at"], :name => "index_specimens_on_modified_at"
291 add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
293 create_table "users", :force => true do |t|
296 t.datetime "created_at"
297 t.string "modified_by_client"
298 t.string "modified_by_user"
299 t.datetime "modified_at"
301 t.string "first_name"
303 t.string "identity_url"
306 t.datetime "updated_at"
307 t.string "default_owner"
310 add_index "users", ["created_at"], :name => "index_users_on_created_at"
311 add_index "users", ["modified_at"], :name => "index_users_on_modified_at"
312 add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true