miroir de
https://github.com/redmine/redmine.git
synchronisé 2024-07-27 20:19:39 +02:00
![Go MAEDA](/assets/img/avatar_default.png)
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
12 lignes
323 B
Ruby
12 lignes
323 B
Ruby
class AddAuthorIdToTimeEntries < ActiveRecord::Migration[5.1]
|
|
def up
|
|
add_column :time_entries, :author_id, :integer, :default => nil, :after => :project_id
|
|
# Copy existing user_id to author_id
|
|
TimeEntry.update_all('author_id = user_id')
|
|
end
|
|
|
|
def down
|
|
remove_column :time_entries, :author_id
|
|
end
|
|
end
|