asciinema.org/db/migrate/20130725202344_rename_asciicasts_stdin_and_stdout.rb

12 lines
308 B
Ruby
Raw Normal View History

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