pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

paste-bin - collaborative debugging tool View Help


Posted by Robert on Thu 26th Apr 18:30 (modification of post by Robert view diff)
diff | download | new post

  1. dave@freezer:~$ radiant --database sqlite3 test
  2. ... (no errors)
  3. dave@freezer:~$ cd test/
  4. dave@freezer:~/test$ rake db:bootstrap
  5. ... (no errors)
  6. dave@freezer:~/test$ sqlite3 db/development.sqlite3.db
  7. SQLite version 3.3.13
  8. Enter ".help" for instructions
  9. sqlite> .schema users
  10. CREATE TABLE users ("id" INTEGER PRIMARY KEY NOT NULL, "name" varchar(100) DEFAULT '''''''''''''''NULL''''''''''''''', "email" varchar(255) DEFAULT '''''''''''''''NULL''''''''''''''', "login" varchar(40) DEFAULT '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' NOT NULL, "password" varchar(40) DEFAULT '''''''''''''''NULL''''''''''''''', "created_at" datetime DEFAULT NULL, "updated_at" datetime DEFAULT NULL, "created_by" integer DEFAULT 0, "updated_by" integer DEFAULT 0, "admin" boolean DEFAULT 'f' NOT NULL, "developer" boolean DEFAULT 'f' NOT NULL, "notes" text, "lock_version" integer DEFAULT 0);
  11. CREATE UNIQUE INDEX "login" ON users ("login");
  12. sqlite> .exit
  13. dave@freezer:~/test$ script/console
  14. Loading development environment.
  15. >> Rails::VERSION::STRING
  16. => "1.2.3"
  17. >> Radiant::Version
  18. => 0.6.0
  19. >> exit
  20. dave@freezer:~/test$ gem list sqlite3-ruby
  21.  
  22. *** LOCAL GEMS ***
  23.  
  24. sqlite3-ruby (1.2.1)
  25.     SQLite3/Ruby is a module to allow Ruby scripts to interface with a
  26.     SQLite3 database.

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@
:
:
Remember my settings