A bit more of the code - to clarify the origin...

#---
# Excerpted from "Agile Web Development with Rails, 4rd Ed.",
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training 
material,
# courses, books, articles, and the like. Contact us if you are in 
doubt.
# We make no guarantees that this code is fit for any purpose.
# Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book 
information.
#---
require 'builder'
require 'active_record'

#ActiveRecord::Base.establish_connection(
#  :adapter => 'sqlite3',
#  :database => 'db/development.sqlite3')

ActiveRecord::Base.establish_connection(
  :adapter => 'mysql2',
  :database => 'db/development.mysql2')

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to