Ask A Question

Notifications

You’re not receiving notifications from this thread.

Seed local database

bhavya asked in Ruby

HI,
I am new in Ruby and i am set up the open source project on Ubuntu and stuck in some point.
$ bundle exec rails db:setup
When i execute the above command then its not running.
I was execute this in project directory not from root directory.
I found the error that no Gemfiles and /bundler direcory was found.

Please help asap.

Reply

Once you have made you project, you should run rails db:create to create your database.

It would then do worth looking at The Rail Tutorial which gives a great overview of the basics about Rails. Chapter 2 will give you a good idea on how to deal with migrations, and general DB stuff.

Reply

Thanks Alan

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 73,895+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.