Cross Reference:
xref
: /
ontohub
/
db
/
migrate
/
20120307152935_create_axioms.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
20120307152935_create_axioms.rb revision 3005ac92eb4a1fffe8e3bf2a2ea572b3ac67c46c
class
CreateAxioms
<
ActiveRecord
::
Migration
def
change
create_table
:
axioms
do
|t|
t.string
:
text
t.references
:
ontology
t.timestamps
end
change_table
:
axioms
do
|t|
t.index
[:
ontology_id
, :
id
], :
unique
=>
true
t.foreign
_key
:
ontologies
, :
dependent
=> :
delete
end
end
end