1
0
Fork 0
oldhaven/db/migrate/20110622204123_add_lastfm_u...

11 lines
301 B
Ruby
Raw Normal View History

2011-06-22 22:56:32 +00:00
class AddLastfmUsernameToUsers < ActiveRecord::Migration
def self.up
add_column :users, :lastfm_username, :string
rename_column :users, :lastfm_token, :lastfm_key
end
def self.down
rename_column :users, :lastfm_key, :lastfm_token
remove_column :users, :lastfm_username
end
end