canvas-lms/db/migrate/20121127174920_add_role_roo...

13 lines
308 B
Ruby

class AddRoleRootAccountId < ActiveRecord::Migration
tag :predeploy
def self.up
add_column :roles, :root_account_id, :integer, :limit => 8
add_index :roles, [:root_account_id], :name => "index_roles_on_root_account_id"
end
def self.down
remove_column :roles, :root_account_id
end
end