Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # To use ActiveRecord models in Sinatra, include something like this in your code. For use in another framework, fiddle with the 'configure' call.
  2.  
  3. configure do
  4.  
  5. ActiveRecord::Base.establish_connection(:adapter => "sqlite3",
  6. :dbfile => "db/production.sqlite3")
  7.  
  8. end
Add Comment
Please, Sign In to add comment