From 191a4a61f15141baf8620d6ecf6c27495b6dbba7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 23 Nov 2014 17:38:38 +0000 Subject: [PATCH] First db:migrate fails with SQLServer (undefined method type for nil class in sqlserver adapter). git-svn-id: http://svn.redmine.org/redmine/trunk@13645 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/076_allow_null_position.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/migrate/076_allow_null_position.rb b/db/migrate/076_allow_null_position.rb index ece0370db..afb93810a 100644 --- a/db/migrate/076_allow_null_position.rb +++ b/db/migrate/076_allow_null_position.rb @@ -1,5 +1,7 @@ class AllowNullPosition < ActiveRecord::Migration def self.up + Enumeration.reset_column_information + # removes the 'not null' constraint on position fields change_column :issue_statuses, :position, :integer, :default => 1, :null => true change_column :roles, :position, :integer, :default => 1, :null => true -- 2.39.5