New Discussion

Notifications

You’re not receiving notifications from this thread.

Seed local database

2
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.

Thanks Alan

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.