Joined November 2011
· Posted to Ubuntu 12.10 Rails install over 1 year ago
It's not recommended to install ruby and rails as sudo. It will be better to use some ruby/gem manager(rvm or rbenv).
Posted to Using UUID instead of ids with Postgres and Rails over 1 year ago
@rwz Sorry, didn't pay attention that you are using uuid as primary key, good stuff :)
Posted to Using UUID instead of ids with Postgres and Rails over 1 year ago
In Rails 4 uuid is a built-in type for postgres. So it would look like this:
class AddGuuidToSites < ActiveRecord::Migration def self.up add_column :sites, :guuid, :uuid add_index :sites, :guuid end def self.down remove_column :sites, :guuid end end
Achievements
475 Karma
39,732 Total ProTip Views

Raven
Have at least one original repo where some form of shell script is the dominant language

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013

Beaver
Have at least one original repo where go is the dominant language

Bear
Have at least one original repo where Objective-C is the dominant language

24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2012

Charity
Fork and commit to someone's open source project in need

Mongoose 3
Have at least three original repos where Ruby is the dominant language

Mongoose
Have at least one original repo where Ruby is the dominant language
Thanks :)