Cross Reference:
xref
: /
ontohub
/
db
/
migrate
/
20130606124409_create_repositories.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
20130606124409_create_repositories.rb revision 5c4c13ac875d79def115ce3d8443d4ec87b3252a
class
CreateRepositories
<
ActiveRecord
::
Migration
def
change
create_table
:
repositories
do
|t|
t.string
:
path
,
null
:
false
t.string
:
name
,
null
:
false
t.text
:
description
t.timestamps
null
:
false
end
change_table
:
repositories
do
|t|
t.index
:
path
,
unique
:
true
end
add_column
:
ontologies
, :
repository_id
, :
integer
,
null
:
false
add_foreign_key
:
ontologies
, :
repositories
end
end