Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7a1e787679
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.219 kb
class RenameActiveColumnInUsers < ActiveRecord::Migration
def up
User.update_all(:active => false)
rename_column :users, :active, :banned
end
def down
rename_column :users, :banned, :active
end
end
Jump to Line
Something went wrong with that request. Please try again.