Created
May 2, 2012 20:51
-
-
Save rurounijones/2580398 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment