Project

General

Profile

Download (275 Bytes) Statistics
| Branch: | Tag: | Revision:
class RemoveUnusedRoleFields < ActiveRecord::Migration[4.2]
def up
remove_column :users, :role_id
remove_column :user_roles, :inherited_from
end

def down
add_column :users, :role_id, :integer
add_column :user_roles, :inherited_from, :integer
end
end
(163-163/405)