[RUBY] How to change app name in rails

environment

Rails 6.0.3.4

flow

  1. Insert the gem
  2. Delete db (if not needed)
  3. Change the app name
  4. Create db

procedure

1. Insert the gem

Add the following to Gemfile

gem 'rename'

bundle

$ bundle

2. Delete db (if not needed)

Delete db unless otherwise specified

$ rake db:drop

3. Change the app name

$ rails g rename:into {{New app name}}

Move to the folder with the created app name

$ cd ../{{New app name}}

4. Create db

Create a db

$ rake db:create

Migrate

$ rake db:migrate

Recommended Posts

How to change app name in rails
[Ruby on Rails] How to change the column name
[Rails] How to change the column name of the table
[Rails] How to write in Japanese
How to introduce jQuery in Rails 6
How to name variables in Java
How to install Swiper in Rails
How to deploy jQuery in your Rails app using Webpacker
How to implement search functionality in Rails
How to use custom helpers in rails
How to insert a video in Rails
How to use MySQL in Rails tutorial
[rails] How to configure routing in resources
How to implement ranking functionality in Rails
How to use credentials.yml.enc introduced in Rails 5.2
How to write Rails
How to uninstall Rails
[Rails] How to use select boxes in Ransack
How to translate Rails into Japanese in general
How to prevent direct URL typing in Rails
How to add sound in the app (swift)
How to separate .scss by controller in Rails
How to conditionally add html.erb class in Rails
How to implement a like feature in Rails
How to easily create a pull-down in Rails
How to use JQuery in js.erb of Rails6
[Ruby on Rails] How to install Bootstrap in Rails
How to make a follow function in Rails
[Rails] How to use PostgreSQL in Vagrant environment
How to check Rails commands in the terminal
[Rails] How to log in with a name by adding a devise name column
[Rails] How to apply the CSS used in the main app with Administrate
Change the save destination of the image to S3 in the Rails app. Part 2
[rails] How to post images
How to set the display time to Japan time in Rails
How to implement a like feature in Ajax in Rails
[Ruby on Rails] How to write enum in Japanese
How to push an app developed with Rails to Github
[Rails] How to use enum
[Rails] How to install devise
Change date and time to Japanese notation in Rails
[Rails] How to use enum
[Ruby on Rails] Change URL id to column name
How to read rails routes
[Ruby On Rails] How to reset DB in Heroku
How to use rails join
[How to insert a video in haml with Rails]
How to write a date comparison search in Rails
How to terminate rails server
How to write Rails validation
How to write Rails seed
[Rails] How to use validation
How to query Array in jsonb with Rails + postgres
[Rails 6] How to set a background image in Rails [CSS]
[Rails] How to disable turbolinks
[Rails] How to use authenticate_user!
[Rails] How to use "kaminari"
[Rails] How to implement scraping
[Rails] How to make seed
How to write Rails routing
[Rails] How to load JavaScript in a specific view