Cross Reference:
xref
: /
ontohub
/
db
/
migrate
/
20130413085845_create_oops_requests.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
20130413085845_create_oops_requests.rb revision de68e21ab7c82f21db445d619b211c7aaa6f22c9
class
CreateOopsRequests
<
ActiveRecord
::
Migration
def
change
create_table
:
oops_requests
do
|t|
t.references
:
ontology_version
,
null
:
false
t.references
:
oops_response
t.string
:
state
,
default
:
'pending'
,
null
:
false
t.string
:
last_error
t.timestamps
null
:
false
end
change_table
:
oops_requests
do
|t|
t.index
:
ontology_version_id
t.index
:
oops_response_id
t.foreign
_key
:
ontology_versions
,
dependent
: :
delete
t.foreign
_key
:
oops_responses
,
dependent
: :
delete
end
end
end