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:

  1. the database.yml file should define name of database, rake db:create should create you.
  2. 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 run rake db:migrate. if migrations defined (and should be), 2 options equivalent.
  3. if application needs data run, should have been placed in seeds.rb file, can load rake db:seed

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -