Skip to content

Instantly share code, notes, and snippets.

View flyerhzm's full-sized avatar
🏠
Working from home

Richard Huang flyerhzm

🏠
Working from home
View GitHub Profile
--- ruby18-growl.rb 2005-11-14 21:15:15.000000000 -0800
+++ ruby-growl.rb 2009-11-22 00:47:06.000000000 -0800
@@ -2,7 +2,7 @@
$TESTING = false unless defined? $TESTING
-require 'md5'
+require 'digest/md5'
require 'socket'
class User < ActiveRecord::Base
has_attached_file :avatar, :styles => {:thumb => '100x100>'}
end
###########
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :avatar_file_name