1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

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
This commit is contained in:
Jean-Philippe Lang 2014-11-23 17:38:38 +00:00
parent 1e0045e69b
commit 191a4a61f1

View File

@ -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