Last change
on this file since 60 was 60, checked in by KOBAYASHI, Shinji, 16 years ago |
add people scaffold
|
File size:
334 bytes
|
Rev | Line | |
---|
[59] | 1 | class CreateUsers < ActiveRecord::Migration
|
---|
| 2 | def self.up
|
---|
[60] | 3 | options = {
|
---|
| 4 | :options => "DEFAULT_CHAR_SET=utf8"
|
---|
| 5 | }
|
---|
[59] | 6 | create_table :users do |t|
|
---|
| 7 | t.column :name, :string
|
---|
| 8 | t.column :hashed_passwd, :string
|
---|
| 9 | t.column :salt, :string
|
---|
| 10 | t.timestamps
|
---|
| 11 | end
|
---|
| 12 | end
|
---|
| 13 |
|
---|
| 14 | def self.down
|
---|
| 15 | drop_table :users
|
---|
| 16 | end
|
---|
| 17 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.