|
Revision 2, 0.6 kB
(checked in by falcon, 17 years ago)
|
|
added plugins
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | class <%= migration_name %> < ActiveRecord::Migration |
|---|
| 2 | def self.up |
|---|
| 3 | create_table "<%= table_name %>", :force => true do |t| |
|---|
| 4 | t.column :login, :string |
|---|
| 5 | t.column :email, :string |
|---|
| 6 | t.column :crypted_password, :string, :limit => 40 |
|---|
| 7 | t.column :salt, :string, :limit => 40 |
|---|
| 8 | t.column :created_at, :datetime |
|---|
| 9 | t.column :updated_at, :datetime |
|---|
| 10 | t.column :remember_token, :string |
|---|
| 11 | t.column :remember_token_expires_at, :datetime |
|---|
| 12 | end |
|---|
| 13 | end |
|---|
| 14 | |
|---|
| 15 | def self.down |
|---|
| 16 | drop_table "<%= table_name %>" |
|---|
| 17 | end |
|---|
| 18 | end |
|---|