Mercurial > hg > soundsoftware-site
comparison plugins/redmine_checkout/db/migrate/20100118235909_add_overwrite_option.rb @ 1484:51364c0cd58f redmine-2.4-integration
Merge from live branch. Still need to merge manually in files overridden by plugins.
author | Chris Cannam |
---|---|
date | Wed, 15 Jan 2014 09:59:14 +0000 |
parents | b4b72f1eb644 |
children |
comparison
equal
deleted
inserted
replaced
1464:261b3d9a4903 | 1484:51364c0cd58f |
---|---|
1 class AddOverwriteOption < ActiveRecord::Migration | |
2 def self.up | |
3 add_column :repositories, :checkout_url_overwrite, :boolean, :default => false, :null => false | |
4 | |
5 # existing repositories are set to overwrite the default settings | |
6 # This is to keep continuity of settings. | |
7 Repository.reset_column_information | |
8 Repository.update_all({:checkout_url_overwrite, true}) | |
9 end | |
10 | |
11 def self.down | |
12 remove_column :repositories, :checkout_url_overwrite | |
13 end | |
14 end | |
15 |