rosa-build/db/migrate/20111012223006_create_permi...

17 lines
288 B
Ruby
Raw Normal View History

2012-01-30 20:39:34 +00:00
# -*- encoding : utf-8 -*-
class CreatePermissions < ActiveRecord::Migration
def self.up
create_table :permissions do |t|
t.integer :id
t.integer :right_id
t.integer :role_id
t.timestamps
end
end
def self.down
drop_table :permissions
end
end