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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -