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 => 20130218181504) 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 "job_steps", :force => true do |t|
74 t.string "modified_by_client"
75 t.string "modified_by_user"
76 t.datetime "modified_at"
83 t.datetime "created_at"
84 t.datetime "updated_at"
87 add_index "job_steps", ["created_at"], :name => "index_job_steps_on_created_at"
88 add_index "job_steps", ["job_uuid"], :name => "index_job_steps_on_job_uuid"
89 add_index "job_steps", ["modified_at"], :name => "index_job_steps_on_modified_at"
90 add_index "job_steps", ["sequence"], :name => "index_job_steps_on_sequence"
91 add_index "job_steps", ["success"], :name => "index_job_steps_on_success"
92 add_index "job_steps", ["uuid"], :name => "index_job_steps_on_uuid", :unique => true
94 create_table "jobs", :force => true do |t|
97 t.string "modified_by_client"
98 t.string "modified_by_user"
99 t.datetime "modified_at"
102 t.string "command_version"
103 t.text "command_parameters"
104 t.string "cancelled_by_client"
105 t.string "cancelled_by_user"
106 t.datetime "cancelled_at"
107 t.datetime "started_at"
108 t.datetime "finished_at"
112 t.datetime "created_at"
113 t.datetime "updated_at"
117 add_index "jobs", ["command"], :name => "index_jobs_on_command"
118 add_index "jobs", ["created_at"], :name => "index_jobs_on_created_at"
119 add_index "jobs", ["finished_at"], :name => "index_jobs_on_finished_at"
120 add_index "jobs", ["modified_at"], :name => "index_jobs_on_modified_at"
121 add_index "jobs", ["output"], :name => "index_jobs_on_output"
122 add_index "jobs", ["started_at"], :name => "index_jobs_on_started_at"
123 add_index "jobs", ["submit_id"], :name => "index_jobs_on_submit_id", :unique => true
124 add_index "jobs", ["uuid"], :name => "index_jobs_on_uuid", :unique => true
126 create_table "links", :force => true do |t|
129 t.datetime "created_at"
130 t.string "modified_by_client"
131 t.string "modified_by_user"
132 t.datetime "modified_at"
135 t.integer "native_target_id"
136 t.string "native_target_type"
137 t.string "link_class"
141 t.datetime "updated_at"
145 add_index "links", ["created_at"], :name => "index_links_on_created_at"
146 add_index "links", ["head_kind"], :name => "index_links_on_head_kind"
147 add_index "links", ["head_uuid"], :name => "index_links_on_head_uuid"
148 add_index "links", ["modified_at"], :name => "index_links_on_modified_at"
149 add_index "links", ["tail_kind"], :name => "index_links_on_tail_kind"
150 add_index "links", ["tail_uuid"], :name => "index_links_on_tail_uuid"
151 add_index "links", ["uuid"], :name => "index_links_on_uuid", :unique => true
153 create_table "logs", :force => true do |t|
156 t.string "modified_by_client"
157 t.string "modified_by_user"
158 t.string "object_kind"
159 t.string "object_uuid"
160 t.datetime "event_at"
161 t.string "event_type"
164 t.datetime "created_at"
165 t.datetime "updated_at"
166 t.datetime "modified_at"
169 add_index "logs", ["created_at"], :name => "index_logs_on_created_at"
170 add_index "logs", ["event_at"], :name => "index_logs_on_event_at"
171 add_index "logs", ["event_type"], :name => "index_logs_on_event_type"
172 add_index "logs", ["modified_at"], :name => "index_logs_on_modified_at"
173 add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind"
174 add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid"
175 add_index "logs", ["summary"], :name => "index_logs_on_summary"
176 add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
178 create_table "nodes", :force => true do |t|
181 t.datetime "created_at"
182 t.string "modified_by_client"
183 t.string "modified_by_user"
184 t.datetime "modified_at"
185 t.integer "slot_number"
188 t.string "ip_address"
189 t.datetime "first_ping_at"
190 t.datetime "last_ping_at"
192 t.datetime "updated_at"
195 add_index "nodes", ["created_at"], :name => "index_nodes_on_created_at"
196 add_index "nodes", ["hostname"], :name => "index_nodes_on_hostname", :unique => true
197 add_index "nodes", ["modified_at"], :name => "index_nodes_on_modified_at"
198 add_index "nodes", ["slot_number"], :name => "index_nodes_on_slot_number", :unique => true
199 add_index "nodes", ["uuid"], :name => "index_nodes_on_uuid", :unique => true
201 create_table "pipeline_invocations", :force => true do |t|
204 t.datetime "created_at"
205 t.string "modified_by_client"
206 t.string "modified_by_user"
207 t.datetime "modified_at"
208 t.string "pipeline_uuid"
212 t.boolean "active", :default => false
213 t.datetime "updated_at"
217 add_index "pipeline_invocations", ["created_at"], :name => "index_pipeline_invocations_on_created_at"
218 add_index "pipeline_invocations", ["modified_at"], :name => "index_pipeline_invocations_on_modified_at"
219 add_index "pipeline_invocations", ["uuid"], :name => "index_pipeline_invocations_on_uuid", :unique => true
221 create_table "pipelines", :force => true do |t|
224 t.datetime "created_at"
225 t.string "modified_by_client"
226 t.string "modified_by_user"
227 t.datetime "modified_at"
230 t.datetime "updated_at"
233 add_index "pipelines", ["created_at"], :name => "index_pipelines_on_created_at"
234 add_index "pipelines", ["modified_at"], :name => "index_pipelines_on_modified_at"
235 add_index "pipelines", ["uuid"], :name => "index_pipelines_on_uuid", :unique => true
237 create_table "projects", :force => true do |t|
240 t.datetime "created_at"
241 t.string "modified_by_client"
242 t.string "modified_by_user"
243 t.datetime "modified_at"
246 t.datetime "updated_at"
249 add_index "projects", ["created_at"], :name => "index_projects_on_created_at"
250 add_index "projects", ["modified_at"], :name => "index_projects_on_modified_at"
251 add_index "projects", ["uuid"], :name => "index_projects_on_uuid", :unique => true
253 create_table "specimens", :force => true do |t|
256 t.datetime "created_at"
257 t.string "modified_by_client"
258 t.string "modified_by_user"
259 t.datetime "modified_at"
261 t.datetime "updated_at"
265 add_index "specimens", ["created_at"], :name => "index_specimens_on_created_at"
266 add_index "specimens", ["modified_at"], :name => "index_specimens_on_modified_at"
267 add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
269 create_table "users", :force => true do |t|
272 t.datetime "created_at"
273 t.string "modified_by_client"
274 t.string "modified_by_user"
275 t.datetime "modified_at"
277 t.string "first_name"
279 t.string "identity_url"
282 t.datetime "updated_at"
285 add_index "users", ["created_at"], :name => "index_users_on_created_at"
286 add_index "users", ["modified_at"], :name => "index_users_on_modified_at"
287 add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true