paint-brush
Changing Database Column in Rails 5by@kolosek
695 reads
695 reads

Changing Database Column in Rails 5

by Nesha4mMay 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

There are 3 ways to change the database column in Ruby 5: Changing Database Column in Rails 5. You can change the column name and the column type, as well as changing the column with the type conversion. There are three ways to achieve that: Making a new migration, Fixing the existing migration, Changing the Column Type and Renaming the Column Name. Always run your RSpec tests after each change to the database to make it sure everything is working as intended. Always be careful with reserved names in Rails or SQL when renaming a column.

Company Mentioned

Mention Thumbnail
featured image - Changing Database Column in Rails 5
Nesha HackerNoon profile picture
Nesha

Nesha

@kolosek

CEO @ Kolosek.com

About @kolosek
LEARN MORE ABOUT @KOLOSEK'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Nesha HackerNoon profile picture
Nesha@kolosek
CEO @ Kolosek.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Joyk
Learnrepo