Replace the file_column plugin with paperclip
This commit is contained in:
parent
29c1bab0e6
commit
e70396d70b
33 changed files with 34 additions and 2910 deletions
9
db/migrate/20120123184321_switch_to_paperclip.rb
Normal file
9
db/migrate/20120123184321_switch_to_paperclip.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class SwitchToPaperclip < ActiveRecord::Migration
|
||||
def up
|
||||
rename_column :users, :image, :image_file_name
|
||||
end
|
||||
|
||||
def down
|
||||
rename_column :users, :image_file_name, :image
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue