mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-30 20:29:37 +00:00
Fix migration and use Rails 4.2.0 release (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13894 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
73762a7d62
commit
5190fef9d6
3
Gemfile
3
Gemfile
@ -1,7 +1,6 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
# gem "rails", "4.2.0"
|
||||
gem "rails", :git => "git://github.com/rails/rails.git", :branch => "4-2-stable"
|
||||
gem "rails", "4.2.0"
|
||||
gem "jquery-rails", "~> 3.1.1"
|
||||
gem "coderay", "~> 1.1.0"
|
||||
gem "builder", ">= 3.0.4"
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
class AddViewIssuesPermission < ActiveRecord::Migration
|
||||
def self.up
|
||||
Role.reset_column_information
|
||||
Role.all.each do |r|
|
||||
r.add_permission!(:view_issues)
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
Role.reset_column_information
|
||||
Role.all.each do |r|
|
||||
r.remove_permission!(:view_issues)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user