class UpdateUserModel < ActiveRecord::Migration
  def change
    change_table(:users) do |t|
      t.string :role,             :null => false, :default => ""
      t.text   :bio,              :null => false, :default => ""
      t.string :first_name, :null => false, :default => ""
      t.string :last_name, :null => false, :default => ""
      t.boolean :public,              :null => false, :default => false
      t.string :url, :null=>true, :default => ''   
      t.string :username, :null=>false,:default => ""
    end
    add_index :users, :username
  end
end
