Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 828 Bytes
1 | ######################################################################## |
2 | # File:: 20110130112310_create_users.rb |
3 | # (C):: Hipposoft 2011 |
4 | # |
5 | # Purpose:: Create or destroy the 'users' table. |
6 | # ---------------------------------------------------------------------- |
7 | # 30-Jan-2011 (ADH): Created. |
8 | ######################################################################## |
9 | |
10 | class CreateUsers < ActiveRecord::Migration |
11 | def self.up |
12 | create_table :users do | t | |
13 | t.string :name, :null => false, :limit => User::MAXLEN_NAME |
14 | t.string :email, :null => false, :limit => User::MAXLEN_EMAIL |
15 | t.boolean :admin, :default => false |
16 | |
17 | t.text :preferences # Default sort orders etc.; serialised Ruby hash is stored here |
18 | |
19 | t.timestamps |
20 | end |
21 | end |
22 | |
23 | def self.down |
24 | drop_table :users |
25 | end |
26 | end |