From 5190fef9d61d20a5911dbeb7a35bdbee5e3c90d8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Jan 2015 09:04:21 +0000 Subject: [PATCH] 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 --- Gemfile | 3 +-- db/migrate/20091114105931_add_view_issues_permission.rb | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index aa7d16735..2991b004a 100644 --- a/Gemfile +++ b/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" diff --git a/db/migrate/20091114105931_add_view_issues_permission.rb b/db/migrate/20091114105931_add_view_issues_permission.rb index d12b2deed..6f700cd0c 100644 --- a/db/migrate/20091114105931_add_view_issues_permission.rb +++ b/db/migrate/20091114105931_add_view_issues_permission.rb @@ -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 -- 2.39.5