您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

076_allow_null_position.rb 576B

1234567891011121314
  1. class AllowNullPosition < ActiveRecord::Migration
  2. def self.up
  3. # removes the 'not null' constraint on position fields
  4. change_column :issue_statuses, :position, :integer, :default => 1, :null => true
  5. change_column :roles, :position, :integer, :default => 1, :null => true
  6. change_column :trackers, :position, :integer, :default => 1, :null => true
  7. change_column :boards, :position, :integer, :default => 1, :null => true
  8. change_column :enumerations, :position, :integer, :default => 1, :null => true
  9. end
  10. def self.down
  11. # nothing to do
  12. end
  13. end