Adding a column to an existing table in a Rails migration

Use this command at rails console
rails generate migration add_fieldname_to_tablename fieldname:string
and
rake db:migrate
to run this migration

Comments

Popular posts from this blog

User Login And Logout Show Notice Box Massage

Add CORS to Nginx on AWS Elastic Beanstalk

dmp file