10 lines
Ruby
10 lines
Ruby
|
class AddRolesAssignable < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
add_column :roles, :assignable, :boolean, :default => true
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
remove_column :roles, :assignable
|
||
|
end
|
||
|
end
|