asciinema.org/db/migrate/20130725202344_rename_asciicasts_stdin_and_stdout.rb
2013-08-06 00:37:34 +02:00

12 lines
308 B
Ruby

class RenameAsciicastsStdinAndStdout < ActiveRecord::Migration
def up
rename_column :asciicasts, :stdin, :stdin_data
rename_column :asciicasts, :stdout, :stdout_data
end
def down
rename_column :asciicasts, :stdin_data, :stdin
rename_column :asciicasts, :stdout_data, :stdout
end
end