2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-11-16 18:45:01 +00:00
|
|
|
class AddRolesToRelations < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
add_column :relations, :role, :string
|
|
|
|
add_column :users, :role, :string
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :relations, :role
|
|
|
|
remove_column :users, :role
|
|
|
|
end
|
2012-01-30 20:39:34 +00:00
|
|
|
end
|