summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-19 08:57:35 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-19 08:57:35 -0800
commit8184a6564454faf0f9ae9dfee1377c3407d08447 (patch)
tree0858476b0f6292ee1069c223283d8bc2cb932fc9 /db/migrate
parent7c3147e6e969a7ae97e2f8d05e536abeeb7d3936 (diff)
downloadgitlab-ce-8184a6564454faf0f9ae9dfee1377c3407d08447.tar.gz
Revert "Fix broken access control and refactor avatar upload"
This reverts commit 7d5f86f6cbd187e75a6ba164ad6bfd036977dd07.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150213111727_move_note_folder.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20150213111727_move_note_folder.rb b/db/migrate/20150213111727_move_note_folder.rb
deleted file mode 100644
index ca7f87d984f..00000000000
--- a/db/migrate/20150213111727_move_note_folder.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-class MoveNoteFolder < ActiveRecord::Migration
- def up
- system(
- "if [ -d '#{Rails.root}/public/uploads/note' ];
- then mv #{Rails.root}/public/uploads/note #{Rails.root}/uploads/note;
- echo 'note folder has been moved successfully';
- else
- echo 'note folder has already been moved or does not exist yet. Nothing to do here.'; fi")
- end
-
- def down
- system(
- "if [ -d '#{Rails.root}/uploads/note' ];
- then mv #{Rails.root}/uploads/note #{Rails.root}/public/uploads/note;
- echo 'note folder has been moved successfully';
- else
- echo 'note folder has already been moved or does not exist yet. Nothing to do here.'; fi")
- end
-end