Revision 865
Added by Jean-Philippe Lang over 17 years ago
trunk/db/migrate/076_allow_null_position.rb | ||
---|---|---|
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 |
|
5 |
change_column :roles, :position, :integer, :default => 1 |
|
6 |
change_column :trackers, :position, :integer, :default => 1 |
|
7 |
change_column :boards, :position, :integer, :default => 1 |
|
8 |
change_column :enumerations, :position, :integer, :default => 1 |
|
9 |
end |
|
10 |
|
|
11 |
def self.down |
|
12 |
# nothing to do |
|
13 |
end |
|
14 |
end |
|
0 | 15 |
Also available in: Unified diff
Removed 'not null' constraint on position fields.
Previous migrations updated for new sqlite databases.