Retrospring/db/migrate/20141201191324_add_fields_t...

8 lines
273 B
Ruby
Raw Normal View History

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