mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
8 lines
232 B
Ruby
8 lines
232 B
Ruby
class AddUserToVersions < ActiveRecord::Migration[4.2]
|
|
def change
|
|
execute "UPDATE versions SET user_type = 'User', user_id = posts.user_id
|
|
FROM posts
|
|
WHERE posts.id = versions.versioned_id"
|
|
end
|
|
end
|