Skip to content

Instantly share code, notes, and snippets.

@brunoandradd
Created December 17, 2011 21:43
Show Gist options
  • Save brunoandradd/1491502 to your computer and use it in GitHub Desktop.
Save brunoandradd/1491502 to your computer and use it in GitHub Desktop.
papercliper migrate example
class AddAvatarColumnsToUser < ActiveRecord::Migration
def self.up
change_table :users do |t|
t.has_attached_file :avatar
end
end
def self.down
drop_attached_file :users, :avatar
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment