Retrospring/db/migrate/20141201191324_add_fields_t...

8 lines
268 B
Ruby

class AddFieldsToUsers < ActiveRecord::Migration
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