Cross Reference: 20160107154144_recreate_repository_symlinks.rb
xref
: /
ontohub
/
db
/
data
/
20160107154144_recreate_repository_symlinks.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
RecreateRepositorySymlinks
<
ActiveRecord
::
Migration
def
self.up
Repository.find
_each
do
|
repository
|
repository.send
(:
symlinks_remove
)
repository.send
(:
symlinks_update
)
end
end
def
self.down
Repository.find
_each
do
|
repository
|
repository.send
(:
symlinks_remove
)
repository.send
(:
symlinks_update
)
end
end
end