Skip to content

Instantly share code, notes, and snippets.

@rurounijones
Created May 2, 2012 20:51
Show Gist options
  • Save rurounijones/2580398 to your computer and use it in GitHub Desktop.
Save rurounijones/2580398 to your computer and use it in GitHub Desktop.
Started DELETE "/users/rurounijones" for 127.0.0.1 at 2012-05-03 05:44:43 +0900
Processing by UsersController#destroy as HTML
Parameters: {"authenticity_token"=>"FTFV0iNtTJSvhdp1I5q++p2SDQxgcbEkItXL242YCbI=", "id"=>"rurounijones"}
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."nickname" = 'rurounijones' LIMIT 1
CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."nickname" = 'rurounijones' LIMIT 1
(0.1ms) BEGIN
(0.1ms) ROLLBACK
-----------------------------------------------
pg gem, Postgresql
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :provider
t.string :uid
t.string :name
t.string :nickname
t.string :email
t.timestamps
end
add_index :users, [ :provider, :uid ], :unique => true
add_index :users, :nickname, :unique => true
end
end
class User < ActiveRecord::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment