diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-04 09:18:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-04 09:18:40 +0000 |
commit | 879a614cdec87c47f9c3240e82f28ebf01eee70f (patch) | |
tree | e2ad6d0731bc783b057df57adedb79cfce802f68 /db | |
parent | 8c3dc34359518e2a599afcec98728d9678a48b43 (diff) | |
download | redmine-879a614cdec87c47f9c3240e82f28ebf01eee70f.tar.gz redmine-879a614cdec87c47f9c3240e82f28ebf01eee70f.zip |
added roadmap view
git-svn-id: http://redmine.rubyforge.org/svn/trunk@228 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/023_add_tracker_is_in_roadmap.rb | 9 | ||||
-rw-r--r-- | db/migrate/024_add_roadmap_permission.rb | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/023_add_tracker_is_in_roadmap.rb b/db/migrate/023_add_tracker_is_in_roadmap.rb new file mode 100644 index 000000000..82ef87bba --- /dev/null +++ b/db/migrate/023_add_tracker_is_in_roadmap.rb @@ -0,0 +1,9 @@ +class AddTrackerIsInRoadmap < ActiveRecord::Migration + def self.up + add_column :trackers, :is_in_roadmap, :boolean, :default => true, :null => false + end + + def self.down + remove_column :trackers, :is_in_roadmap + end +end diff --git a/db/migrate/024_add_roadmap_permission.rb b/db/migrate/024_add_roadmap_permission.rb new file mode 100644 index 000000000..51c097edf --- /dev/null +++ b/db/migrate/024_add_roadmap_permission.rb @@ -0,0 +1,9 @@ +class AddRoadmapPermission < ActiveRecord::Migration + def self.up + Permission.create :controller => "projects", :action => "roadmap", :description => "label_roadmap", :sort => 107, :is_public => true, :mail_option => 1, :mail_enabled => 0 + end + + def self.down + Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'roadmap']).destroy + end +end |