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/001_create_users.rb | 17 lines | 417 B | text/x-ruby | RubyLexer |
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