Show More
Commit Description:
added show login in problem stat view...
Commit Description:
added show login in problem stat view
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@362 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
db/migrate/007_create_rights.rb
| 21 lines
| 456 B
| text/x-ruby
| RubyLexer
|
|
|
r0 | 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 | ||||
