Skip to content

Instantly share code, notes, and snippets.

@328
Last active August 29, 2015 14:10
Show Gist options
  • Save 328/f1f7f8ce7aa5e0e0c315 to your computer and use it in GitHub Desktop.
Save 328/f1f7f8ce7aa5e0e0c315 to your computer and use it in GitHub Desktop.
rails カラムの追加
```
rails g migration AddカラムToテーブル カラム:型
```
AddカラムToテーブルのカラムとテーブルの頭文字は大文字じゃないとダメなので注意
なぜかmasterブランチでやらないとコケる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment