Displaying 1 result from an estimated 1 matches for "mycampingdb".
2012 May 15
5
setting up the SQLite database
...ql",
:username => "root",
:password => "toor,
:database => "list"
)
List::Models.create_schema
end
1.3
in a config/database.yml file [Magnus] (probably not worth it for
SQLite):
---
adapter: postgresql
username: root
password: toor
database: mycampingdb
And then do:
require ''yaml''
def AppName.create
AppName
::Models
::Base.establish_connection(YAML.load(File.read("database.yml")))
AppName::Models.create_schema
end
2.
since sqlite is the default, is it necessary to set :adapter
explicitly if that''...