Comments in Rails migrations

def full_address
"#{address} #{street_number}".strip
end
class AddCommentAboutAddress < ActiveRecord::Migration[6.0]
def change
change_column_comment(:users, :address,
from: '', to: 'meaning "street"')
change_column_comment(:liable_people, :address,
from: '', to: 'meaning "street"')
end
end

--

--

--

I engineer software and craft beer, or the other way around.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Magzine v1.9.0 — Elementor Review and Magazine Theme

Technical Overview: Under the Hood of ColdStack

13 Best Practices for Using Helm

Helm wordmark and logo

Workday vs. PeopleSoft: Which one to choose?

Full Stack Web Developer VS WordPress Web Developer

Scaling Applications Part 3 — Scaling the Monolithic Database

How to write Ansible Roles and publish them on Ansible Galaxy?

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
Josua Schmid

Josua Schmid

I engineer software and craft beer, or the other way around.

More from Medium

Ruby and Ruby on Rails

How to Access Deeply Nested Associations in Ruby on Rails using ActiveRecord and Serializers

Form step-by-step in Rails

Integrating Recurring Payments to Your Rails API With Stripe