Skip to content

Instantly share code, notes, and snippets.

@Chryus
Created March 17, 2014 14:45
Show Gist options
  • Save Chryus/9600590 to your computer and use it in GitHub Desktop.
Save Chryus/9600590 to your computer and use it in GitHub Desktop.
Example migration for admin column
class AddAdminToUsers < ActiveRecord::Migration
def change
add_column :users, :admin, :boolean, :default => false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment