annotate .svn/pristine/d6/d6d2d7c49f7779d8e6b7df27e7cb7703684fb6de.svn-base @ 1082:997f6d7738f7 bug_531

In repo controller entry action, show the page for the file even if it's binary (so user still has access to history etc links). This makes it possible to use the entry action as the default when a file is clicked on
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 22 Nov 2012 18:04:17 +0000
parents cbb26bc654de
children
rev   line source
Chris@909 1 class CreateProjectsTrackers < ActiveRecord::Migration
Chris@909 2 def self.up
Chris@909 3 create_table :projects_trackers, :id => false do |t|
Chris@909 4 t.column :project_id, :integer, :default => 0, :null => false
Chris@909 5 t.column :tracker_id, :integer, :default => 0, :null => false
Chris@909 6 end
Chris@909 7 add_index :projects_trackers, :project_id, :name => :projects_trackers_project_id
Chris@909 8
Chris@909 9 # Associates all trackers to all projects (as it was before)
Chris@909 10 tracker_ids = Tracker.find(:all).collect(&:id)
Chris@909 11 Project.find(:all).each do |project|
Chris@909 12 project.tracker_ids = tracker_ids
Chris@909 13 end
Chris@909 14 end
Chris@909 15
Chris@909 16 def self.down
Chris@909 17 drop_table :projects_trackers
Chris@909 18 end
Chris@909 19 end