lib/beerdb/console.rb in beerdb-0.9.13 vs lib/beerdb/console.rb in beerdb-0.10.0

- old
+ new

@@ -1,19 +1,13 @@ +# encoding: utf-8 + ## for use to run with interactive ruby (irb) ## e.g. irb -r sportdb/console -require 'beerdb' +require 'beerdb/models' -# some ruby stdlibs -require 'logger' -require 'pp' # pretty printer -require 'uri' -require 'json' -require 'yaml' - - ## shortcuts for models Beer = BeerDb::Models::Beer Brewery = BeerDb::Models::Brewery @@ -27,10 +21,10 @@ ## connect to db DB_CONFIG = { adapter: 'sqlite3', - database: 'beer.db' + database: './beer.db' } pp DB_CONFIG ActiveRecord::Base.establish_connection( DB_CONFIG )