All threads / Seed local database

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.

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.

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.