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 04ec32c7da711ca86c02a1d44e8f395d0ef7b1fa
class
CreateOopsRequests
<
ActiveRecord
::
Migration
def
change
create_table
:
oops_requests
do
|t|
t.references
:
ontology_version
,
null
:
false
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.foreign
_key
:
ontology_versions
,
dependent
: :
delete
end
end
end