diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-22 21:07:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-22 21:07:13 +0000 |
commit | 8f7f305f7cf89c6086411ad846223bd2583f8369 (patch) | |
tree | 23b408368058d62c9669932ea6b5e689979894e1 /db/migrate/021_add_tracker_position.rb | |
parent | 33003e5b2d881a30df7dc37a0c2a7b07b2a67ebe (diff) | |
download | redmine-8f7f305f7cf89c6086411ad846223bd2583f8369.tar.gz redmine-8f7f305f7cf89c6086411ad846223bd2583f8369.zip |
Removed 'not null' constraint on position fields.
Previous migrations updated for new sqlite databases.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@864 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/021_add_tracker_position.rb')
-rw-r--r-- | db/migrate/021_add_tracker_position.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/021_add_tracker_position.rb b/db/migrate/021_add_tracker_position.rb index 30a5d771c..ef9775620 100644 --- a/db/migrate/021_add_tracker_position.rb +++ b/db/migrate/021_add_tracker_position.rb @@ -1,6 +1,6 @@ class AddTrackerPosition < ActiveRecord::Migration def self.up - add_column :trackers, :position, :integer, :default => 1, :null => false + add_column :trackers, :position, :integer, :default => 1 Tracker.find(:all).each_with_index {|tracker, i| tracker.update_attribute(:position, i+1)} end |