镜像自地址
https://github.com/redmine/redmine.git
已同步 2024-08-19 02:10:14 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
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 行
503 B
Ruby
17 行
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
|