Show More
Commit Description:
add option to update PDF file of a problem in /problem/edit/:id...
Commit Description:
add option to update PDF file of a problem in /problem/edit/:id (grafted from 15b2554bf365f8639b5e94db4f1d9a277007808a)
File last commit:
Show/Diff file:
Action:
db/migrate/007_create_rights.rb | 21 lines | 456 B | text/x-ruby | RubyLexer |
class CreateRights < ActiveRecord::Migration
def self.up
create_table :rights do |t|
t.column 'name', :string
t.column 'controller', :string
t.column 'action', :string
end
create_table :rights_roles, :id => false do |t|
t.column 'right_id', :integer
t.column 'role_id', :integer
end
add_index :rights_roles, :role_id
end
def self.down
drop_table :rights_roles
drop_table :rights
end
end