You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

076_allow_null_position.rb 623B

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