cirandas.net

ref: master

plugins/video/db/migrate/20160115185550_rename_video_block.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
class RenameVideoBlock < ActiveRecord::Migration
  def up
    execute("UPDATE blocks SET type = 'VideoPlugin::VideoBlock' WHERE type = 'VideoBlock'")
  end

  def down
    say "this migration can't be reverted"
  end
end