Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
update migration
Commit Description:
update migration
class RefactorProblemBodyToDescription < ActiveRecord :: Migration [ 4 . 2 ]
def self . up
add_column :problems , :description_id , :integer
Problem . reset_column_information
Problem . all . each do | problem |
if problem . body! = nil
description = Description . new
description . body = problem . body
description . markdowned = false
description . save
problem . description_id = description . id
problem . save
end
end
remove_column :problems , :body
end
def self . down
add_column :problems , :body , :text
Problem . reset_column_information
Problem . all . each do | problem |
if problem . description_id != nil
problem . body = Description . find ( problem . description_id ) . body
problem . save
end
end
remove_column :problems , :description_id
end
end
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings