To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / d7 / d7746eb3e9f32d7f0749b6c62d75512963079219.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (576 Bytes)

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

    
11
  def self.down
12
    # nothing to do
13
  end
14
end