mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 18:36:07 +01:00 
			
		
		
		
	New commits are automatically retrieved and stored when consulting the repository in the app. This behaviour can be disabled by unchecking 'Autofecth commits' in configuration settings. Commits can be fetched offline by running (recommanded at least for the initial import of past commits): ruby script/runner "Repository.fetch_changesets" It will load commits for all of the repositories. git-svn-id: http://redmine.rubyforge.org/svn/trunk@377 e93f8b46-1217-0410-a6f0-8f06a7374b81
		
			
				
	
	
		
			17 lines
		
	
	
		
			503 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			503 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class CreateChanges < ActiveRecord::Migration
 | |
|   def self.up
 | |
|     create_table :changes do |t|
 | |
|       t.column :changeset_id, :integer, :null => false
 | |
|       t.column :action, :string,  :limit => 1, :default => "", :null => false
 | |
|       t.column :path, :string, :default => "", :null => false
 | |
|       t.column :from_path, :string
 | |
|       t.column :from_revision, :integer
 | |
|     end
 | |
|     add_index :changes, [:changeset_id], :name => :changesets_changeset_id
 | |
|   end
 | |
| 
 | |
|   def self.down
 | |
|     drop_table :changes
 | |
|   end
 | |
| end
 |