Show More
Commit Description:
initial commit...
Commit Description:
initial commit
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@1 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
db/migrate/001_create_users.rb
| 17 lines
| 417 B
| text/x-ruby
| RubyLexer
|
|
r0 | class CreateUsers < ActiveRecord::Migration | ||
def self.up | ||||
create_table :users do |t| | ||||
t.column :login, :string, :limit => 10 | ||||
t.column :full_name, :string | ||||
t.column :hashed_password, :string | ||||
t.column :salt, :string, :limit => 5 | ||||
t.column :alias, :string | ||||
end | ||||
# force unique name | ||||
add_index :users, :login, :unique => true | ||||
end | ||||
def self.down | ||||
drop_table :users | ||||
end | ||||
end | ||||