To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 080_add_users_type.rb @ 912:5e80956cc792

History | View | Annotate | Download (198 Bytes)

1
class AddUsersType < ActiveRecord::Migration
2
  def self.up
3
    add_column :users, :type, :string
4
    User.update_all "type = 'User'"
5
  end
6

    
7
  def self.down
8
    remove_column :users, :type
9
  end
10
end