mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 20:56:04 +01:00
7 lines
349 B
Ruby
7 lines
349 B
Ruby
|
class MoveSmilesToAppendables < ActiveRecord::Migration[6.1]
|
||
|
def up_only
|
||
|
execute "INSERT INTO appendables (type, user_id, parent_id, parent_type, content, created_at, updated_at)
|
||
|
(SELECT 'Appendable::Reaction' AS type, user_id, answer_id as parent_id, 'Answer' as parent_type, '🙂' AS content, created_at, updated_at FROM smiles)"
|
||
|
end
|
||
|
end
|