can we use schema file or seed file to create database file on ruby on rails project? -
i working on rubyrails project. in db folder contains schema file, seed file , .sqlite3 file database 0 kb.i want create database using schema or seed file. idea
for rails 4 , below use rake db:setup
run schema, migrations , seed , setup initial database.
for rails 5 use rails in place of rake rails db:setup
for further information refer q&a on stack overflow:
difference between rake db:migrate db:reset , db:schema:load
Comments
Post a Comment