Sheldon
Sheldon

Reputation: 10095

How do I change a Ruby on Rails (4) application name?

Essentially I have a basic app that I would like to use as base for my other projects.

I ran git clone [email protected]:user/app.git newfolder

But when I run my rails app rails s I get the following error:

Migrations are pending; run 'rake db:migrate RAILS_ENV=development' to resolve this issue.

So I run rake db:migrate and start the app again, getting the following error:

enter image description here

I have a sneaking suspicion that it has something to do with the app name as asked in this question but I noticed the solution was provided for Rails 3 and the GitHub project hasn't been updated in two years.

Essentially, I think I have a solution (renaming the app) but I don't know how to do that. However, I may be wrong and I don't know why I am getting this error?

Upvotes: 0

Views: 720

Answers (1)

usha
usha

Reputation: 29369

You are getting this error because, one of the css files you are requiring in your application.css is requiring application.css. Go through all the file in your app/assets/stylesheets and make sure that none of the file that is required in application.css is requiring application.css.

Upvotes: 1

Related Questions