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 => 20130318002138) 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"
28 add_index "api_client_authorizations", ["api_client_id"], :name => "index_api_client_authorizations_on_api_client_id"
29 add_index "api_client_authorizations", ["api_token"], :name => "index_api_client_authorizations_on_api_token", :unique => true
30 add_index "api_client_authorizations", ["expires_at"], :name => "index_api_client_authorizations_on_expires_at"
31 add_index "api_client_authorizations", ["user_id"], :name => "index_api_client_authorizations_on_user_id"
33 create_table "api_clients", :force => true do |t|
36 t.string "modified_by_client"
37 t.string "modified_by_user"
38 t.datetime "modified_at"
41 t.datetime "created_at"
42 t.datetime "updated_at"
45 add_index "api_clients", ["created_at"], :name => "index_api_clients_on_created_at"
46 add_index "api_clients", ["modified_at"], :name => "index_api_clients_on_modified_at"
47 add_index "api_clients", ["uuid"], :name => "index_api_clients_on_uuid", :unique => true
49 create_table "collections", :force => true do |t|
52 t.datetime "created_at"
53 t.string "modified_by_client"
54 t.string "modified_by_user"
55 t.datetime "modified_at"
56 t.string "portable_data_hash"
58 t.integer "redundancy"
59 t.string "redundancy_confirmed_by_client"
60 t.datetime "redundancy_confirmed_at"
61 t.integer "redundancy_confirmed_as"
62 t.datetime "updated_at"
64 t.text "manifest_text"
67 add_index "collections", ["created_at"], :name => "index_collections_on_created_at"
68 add_index "collections", ["modified_at"], :name => "index_collections_on_modified_at"
69 add_index "collections", ["uuid"], :name => "index_collections_on_uuid", :unique => true
71 create_table "groups", :force => true do |t|
74 t.datetime "created_at"
75 t.string "modified_by_client"
76 t.string "modified_by_user"
77 t.datetime "modified_at"
80 t.datetime "updated_at"
83 add_index "groups", ["created_at"], :name => "index_groups_on_created_at"
84 add_index "groups", ["modified_at"], :name => "index_groups_on_modified_at"
85 add_index "groups", ["uuid"], :name => "index_groups_on_uuid", :unique => true
87 create_table "job_steps", :force => true do |t|
90 t.string "modified_by_client"
91 t.string "modified_by_user"
92 t.datetime "modified_at"
99 t.datetime "created_at"
100 t.datetime "updated_at"
103 add_index "job_steps", ["created_at"], :name => "index_job_steps_on_created_at"
104 add_index "job_steps", ["job_uuid"], :name => "index_job_steps_on_job_uuid"
105 add_index "job_steps", ["modified_at"], :name => "index_job_steps_on_modified_at"
106 add_index "job_steps", ["sequence"], :name => "index_job_steps_on_sequence"
107 add_index "job_steps", ["success"], :name => "index_job_steps_on_success"
108 add_index "job_steps", ["uuid"], :name => "index_job_steps_on_uuid", :unique => true
110 create_table "jobs", :force => true do |t|
113 t.string "modified_by_client"
114 t.string "modified_by_user"
115 t.datetime "modified_at"
118 t.string "command_version"
119 t.text "command_parameters"
120 t.string "cancelled_by_client"
121 t.string "cancelled_by_user"
122 t.datetime "cancelled_at"
123 t.datetime "started_at"
124 t.datetime "finished_at"
128 t.datetime "created_at"
129 t.datetime "updated_at"
131 t.string "is_locked_by"
133 t.text "tasks_summary"
134 t.text "resource_limits"
137 add_index "jobs", ["command"], :name => "index_jobs_on_command"
138 add_index "jobs", ["created_at"], :name => "index_jobs_on_created_at"
139 add_index "jobs", ["finished_at"], :name => "index_jobs_on_finished_at"
140 add_index "jobs", ["modified_at"], :name => "index_jobs_on_modified_at"
141 add_index "jobs", ["output"], :name => "index_jobs_on_output"
142 add_index "jobs", ["started_at"], :name => "index_jobs_on_started_at"
143 add_index "jobs", ["submit_id"], :name => "index_jobs_on_submit_id", :unique => true
144 add_index "jobs", ["uuid"], :name => "index_jobs_on_uuid", :unique => true
146 create_table "links", :force => true do |t|
149 t.datetime "created_at"
150 t.string "modified_by_client"
151 t.string "modified_by_user"
152 t.datetime "modified_at"
155 t.string "link_class"
159 t.datetime "updated_at"
163 add_index "links", ["created_at"], :name => "index_links_on_created_at"
164 add_index "links", ["head_kind"], :name => "index_links_on_head_kind"
165 add_index "links", ["head_uuid"], :name => "index_links_on_head_uuid"
166 add_index "links", ["modified_at"], :name => "index_links_on_modified_at"
167 add_index "links", ["tail_kind"], :name => "index_links_on_tail_kind"
168 add_index "links", ["tail_uuid"], :name => "index_links_on_tail_uuid"
169 add_index "links", ["uuid"], :name => "index_links_on_uuid", :unique => true
171 create_table "logs", :force => true do |t|
174 t.string "modified_by_client"
175 t.string "modified_by_user"
176 t.string "object_kind"
177 t.string "object_uuid"
178 t.datetime "event_at"
179 t.string "event_type"
182 t.datetime "created_at"
183 t.datetime "updated_at"
184 t.datetime "modified_at"
187 add_index "logs", ["created_at"], :name => "index_logs_on_created_at"
188 add_index "logs", ["event_at"], :name => "index_logs_on_event_at"
189 add_index "logs", ["event_type"], :name => "index_logs_on_event_type"
190 add_index "logs", ["modified_at"], :name => "index_logs_on_modified_at"
191 add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind"
192 add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid"
193 add_index "logs", ["summary"], :name => "index_logs_on_summary"
194 add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
196 create_table "nodes", :force => true do |t|
199 t.datetime "created_at"
200 t.string "modified_by_client"
201 t.string "modified_by_user"
202 t.datetime "modified_at"
203 t.integer "slot_number"
206 t.string "ip_address"
207 t.datetime "first_ping_at"
208 t.datetime "last_ping_at"
210 t.datetime "updated_at"
213 add_index "nodes", ["created_at"], :name => "index_nodes_on_created_at"
214 add_index "nodes", ["hostname"], :name => "index_nodes_on_hostname", :unique => true
215 add_index "nodes", ["modified_at"], :name => "index_nodes_on_modified_at"
216 add_index "nodes", ["slot_number"], :name => "index_nodes_on_slot_number", :unique => true
217 add_index "nodes", ["uuid"], :name => "index_nodes_on_uuid", :unique => true
219 create_table "pipeline_invocations", :force => true do |t|
222 t.datetime "created_at"
223 t.string "modified_by_client"
224 t.string "modified_by_user"
225 t.datetime "modified_at"
226 t.string "pipeline_uuid"
230 t.boolean "active", :default => false
231 t.datetime "updated_at"
235 add_index "pipeline_invocations", ["created_at"], :name => "index_pipeline_invocations_on_created_at"
236 add_index "pipeline_invocations", ["modified_at"], :name => "index_pipeline_invocations_on_modified_at"
237 add_index "pipeline_invocations", ["uuid"], :name => "index_pipeline_invocations_on_uuid", :unique => true
239 create_table "pipelines", :force => true do |t|
242 t.datetime "created_at"
243 t.string "modified_by_client"
244 t.string "modified_by_user"
245 t.datetime "modified_at"
248 t.datetime "updated_at"
251 add_index "pipelines", ["created_at"], :name => "index_pipelines_on_created_at"
252 add_index "pipelines", ["modified_at"], :name => "index_pipelines_on_modified_at"
253 add_index "pipelines", ["uuid"], :name => "index_pipelines_on_uuid", :unique => true
255 create_table "specimens", :force => true do |t|
258 t.datetime "created_at"
259 t.string "modified_by_client"
260 t.string "modified_by_user"
261 t.datetime "modified_at"
263 t.datetime "updated_at"
267 add_index "specimens", ["created_at"], :name => "index_specimens_on_created_at"
268 add_index "specimens", ["modified_at"], :name => "index_specimens_on_modified_at"
269 add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
271 create_table "users", :force => true do |t|
274 t.datetime "created_at"
275 t.string "modified_by_client"
276 t.string "modified_by_user"
277 t.datetime "modified_at"
279 t.string "first_name"
281 t.string "identity_url"
284 t.datetime "updated_at"
287 add_index "users", ["created_at"], :name => "index_users_on_created_at"
288 add_index "users", ["modified_at"], :name => "index_users_on_modified_at"
289 add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true