diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-23 13:36:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-23 13:36:01 +0000 |
commit | e0a034164f3409336f686cfa381da8a5db15c40e (patch) | |
tree | e4bd9590116c03026375a3ae5c618e01cd7bddc3 /db | |
parent | 1ada789a6ccbbbaa55adc3a661ea7cef917d4b71 (diff) | |
download | redmine-e0a034164f3409336f686cfa381da8a5db15c40e.tar.gz redmine-e0a034164f3409336f686cfa381da8a5db15c40e.zip |
Move wiki page to other project (#5450).
git-svn-id: http://svn.redmine.org/redmine/trunk@13643 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb b/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb new file mode 100644 index 000000000..6dfbd0e14 --- /dev/null +++ b/db/migrate/20141122124142_add_wiki_redirects_redirects_to_wiki_id.rb @@ -0,0 +1,11 @@ +class AddWikiRedirectsRedirectsToWikiId < ActiveRecord::Migration + def self.up + add_column :wiki_redirects, :redirects_to_wiki_id, :integer + WikiRedirect.update_all "redirects_to_wiki_id = wiki_id" + change_column :wiki_redirects, :redirects_to_wiki_id, :integer, :null => false + end + + def self.down + remove_column :wiki_redirects, :redirects_to_wiki_id + end +end |