Created
June 27, 2018 03:43
-
-
Save makstaks/61c056278eb6b65239f41e2a51b8110b to your computer and use it in GitHub Desktop.
Rails Generate Add Column Database Migration Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rails generate migration add_column_name_to_table_name column_name:data_type | |
| Example: | |
| rails generate migration add_email_to_users email:string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment