Rails - joining a github project with a missing database -
i trying collaborate on project has following .gitignore:
# ignore bundler config. /.bundle # ignore default sqlite database. /db/*.sqlite3 /db/*.sqlite3-journal # ignore logfiles , tempfiles. /log/*.log /tmp # ignore other unneeded files. database.yml doc/ *.swp *~ .project .ds_store .idea .secret
so database missing, along related files, makes rails throw me error if try start server, , rake aborted! errors if try run db:create/migrate/ etc (yml file not found, adapter not specified).
any pointers @ how can tackle problem in correct/effective way?
you're never supposed supply database project. normal thing create it:
- the database.yml file should define name of database,
rake db:create
should create you. - the schema should either defined in schema.rb file in case run
rake db:schema:load
or can provided via migrations (or both). in second case runrake db:migrate
. if migrations defined (and should be), 2 options equivalent. - if application needs data run, should have been placed in seeds.rb file, can load
rake db:seed
Comments
Post a Comment