mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
17 lines
508 B
Ruby
17 lines
508 B
Ruby
class CreateChanges < ActiveRecord::Migration[4.2]
|
|
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
|