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/020_add_role_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/020_add_role_position.rb')
-rw-r--r-- | db/migrate/020_add_role_position.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/020_add_role_position.rb b/db/migrate/020_add_role_position.rb index 3afa88193..e220bd9fd 100644 --- a/db/migrate/020_add_role_position.rb +++ b/db/migrate/020_add_role_position.rb @@ -1,6 +1,6 @@ class AddRolePosition < ActiveRecord::Migration def self.up - add_column :roles, :position, :integer, :default => 1, :null => false + add_column :roles, :position, :integer, :default => 1 Role.find(:all).each_with_index {|role, i| role.update_attribute(:position, i+1)} end |