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
./
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
class
RecreateRepositorySymlinks
<
ActiveRecord
::
Migration
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
def
self.up
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
Repository.find
_each
do
|
repository
|
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
repository.send
(:
symlinks_remove
)
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
repository.send
(:
symlinks_update
)
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
end
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
end
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
def
self.down
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
Repository.find
_each
do
|
repository
|
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
repository.send
(:
symlinks_remove
)
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
repository.send
(:
symlinks_update
)
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
end
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
end
ee3789e4a12c51590a217d0d74baa98e9b31d30a
Eugen Kuksa
end