12 lines
282 B
Ruby
12 lines
282 B
Ruby
|
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
|