LoginSignup
14

More than 5 years have passed since last update.

Railsで既にあるテーブルにカラムを追加する記述

Last updated at Posted at 2013-02-06

例えば既にusersテーブルがあって、例えばそこにageのカラムを追加したい場合。

$rails g migration AddAgeToUsers age:integer 

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14