You have to generate a new migration file by using rails g migration add_columnname_to_tablename for adding that particular column and do rake db:migrate. Upgrading to Rails 5.0, the newest Ruby on Rails version.You must actively and regularly maintain your Rails applications.Upgrade your Rails applications whenever a new version of Rails is released.This article shows how to switch between versions of Ruby and Rails using , the Ruby Version Manager.
Rails is revised frequently and you’ll likely need more than one version.
If you neglect to update regularly, upgrading several versions at once may require considerable effort, making it difficult to resolve security vulnerabilities quickly.
If you don’t update Rails, you leave your application and its server open to attack.
Don’t simply replace an old version of Rails with another.
Instead, set up your development environment with multiple versions of Rails so you can easily switch between them.