source:
ruby/trunk/rails/cancerehr/db/migrate/001_create_users.rb@
59
Last change on this file since 59 was 59, checked in by , 16 years ago | |
---|---|
File size: 270 bytes |
Rev | Line | |
---|---|---|
[59] | 1 | class CreateUsers < ActiveRecord::Migration |
2 | def self.up | |
3 | create_table :users do |t| | |
4 | t.column :name, :string | |
5 | t.column :hashed_passwd, :string | |
6 | t.column :salt, :string | |
7 | t.timestamps | |
8 | end | |
9 | end | |
10 | ||
11 | def self.down | |
12 | drop_table :users | |
13 | end | |
14 | end |
Note:
See TracBrowser
for help on using the repository browser.