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
./
20160107154144_recreate_repository_symlinks.rb revision ee3789e4a12c51590a217d0d74baa98e9b31d30a
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