2011-10-27 19:09:22 +01:00
|
|
|
class AddDefaultToRoles < ActiveRecord::Migration
|
|
|
|
def self.up
|
2014-01-21 04:51:49 +00:00
|
|
|
add_column :roles, :use_default, :boolean, default: false
|
|
|
|
add_column :roles, :use_default_for_owner, :boolean, default: false
|
2011-10-27 19:09:22 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :roles, :use_default
|
|
|
|
remove_column :roles, :use_default_for_owner
|
|
|
|
end
|
|
|
|
end
|