You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

080_add_users_type.rb 203B

12345678910
  1. class AddUsersType < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_column :users, :type, :string
  4. User.update_all "type = 'User'"
  5. end
  6. def self.down
  7. remove_column :users, :type
  8. end
  9. end