summaryrefslogtreecommitdiff
path: root/db/migrate/20190820163320_add_first_last_name_to_user.rb
blob: 0ea465fc2e2897d7890b0c69b0b0ce8818c0344b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.

class AddFirstLastNameToUser < ActiveRecord::Migration[5.2]
  # Set this constant to true if this migration requires downtime.
  DOWNTIME = false

  def change
    add_column(:users, :first_name, :string, null: true, limit: 255)
    add_column(:users, :last_name, :string, null: true, limit: 255)
  end
end