Skip to content

Instantly share code, notes, and snippets.

@aep
Created March 25, 2014 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aep/9765344 to your computer and use it in GitHub Desktop.
Save aep/9765344 to your computer and use it in GitHub Desktop.
aep@nightbringer: ~/proj/airbacon/airbeacon rails console
Loading development environment (Rails 4.0.2)
irb(main):001:0> User.create(app_id:123).token
(39.9ms) BEGIN
+++++++++++MAKING TOKEN!
SQL (125.5ms) INSERT INTO "users" ("app_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["app_id", 123], ["created_at", Tue, 25 Mar 2014 16:16:57 UTC +00:00], ["updated_at", Tue, 25 Mar 2014 16:16:57 UTC +00:00]]
(42.2ms) COMMIT
=> nil
irb(main):002:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment