retrospring/db/migrate/20141201191324_add_fields_to_users.rb
2023-10-21 13:01:07 +02:00

9 lines
304 B
Ruby

# frozen_string_literal: true
class AddFieldsToUsers < ActiveRecord::Migration[4.2]
def change
add_column :users, :website, :string, default: "", null: false
add_column :users, :location, :string, default: "", null: false
add_column :users, :bio, :text, default: "", null: false
end
end