Class: CreateRepositoryChanges
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateRepositoryChanges
- Defined in:
- lib/generators/svn_record/templates/create_repository_changes.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/svn_record/templates/create_repository_changes.rb', line 3 def change create_table :repository_changes do |t| t.column :user_id, :integer # user_id :: 用户ID t.column :revision, :integer # revision :: 版本号 t.column :committer, :string # committer :: 提交人 t.column :comment, :string # comment :: 注释 t.column :committed_at, :string # committed_at :: 提交时间 end add_index :repository_changes, :user_id end |