1
0
Fork 0
oldhaven/db/migrate/20110617213912_fix_column_n...

12 lines
282 B
Ruby
Raw Permalink Normal View History

class FixColumnNames < ActiveRecord::Migration
def self.up
rename_column :artists, :type, :artist_type
rename_column :albums, :type, :album_type
end
def self.down
rename_column :artists, :artist_type, :type
rename_column :albums, :album_type, :type
end
end