Skip to content

Instantly share code, notes, and snippets.

@spundun
Created August 26, 2014 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spundun/ade33d22ef71bfb61d7d to your computer and use it in GitHub Desktop.
Save spundun/ade33d22ef71bfb61d7d to your computer and use it in GitHub Desktop.
2014081525420_add_blocked_to_users.rb
class AddBlockedToUsers < ActiveRecord::Migration
def change
add_column :users, :blocked, :bool
end
def self.up
execute "ALTER TABLE USERS DROP COLUMN BLOCKED"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment