mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
8 lines
227 B
Ruby
8 lines
227 B
Ruby
|
class AddUserToVersions < ActiveRecord::Migration
|
||
|
def change
|
||
|
execute "UPDATE versions SET user_type = 'User', user_id = posts.user_id
|
||
|
FROM posts
|
||
|
WHERE posts.id = versions.versioned_id"
|
||
|
end
|
||
|
end
|