Sign in

There are many, many articles which condemn the use of concerns in a Rails project, and they all have valid points. I mostly agree with the arguments, such as them causing Bi-directional dependencies and arbitrarily splitting up code into multiple files. That said, I think a lot of these articles go too far by claiming you should never use concerns.

To be clear, if I saw a model that started with 20 concerns being included, I would be… Well, concerned. That’s why I’ve titles this a conservative case for concerns. …


Introduction

In this article you will move your database over to a new server, with only a few seconds of downtime.

Prerequisites

Before you begin this guide you’ll need the following:

Step 1 — Creating a server

The first step to migrating to a new server, is of course to create a new server instance. You can go through How To Install and Use PostgreSQL on Ubuntu 20.04 again in order to set up the new database server you just created.

Step 2 — Preparing the old database for replication

In order to transfer all the database data to…

Keeyan Nejad

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store