Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateUsers < ActiveRecord::Migration
- def self.up
- create_table :users, :force => true do |t|
- t.string :name, :email, :salty_pass, :memento
- t.datetime :memento_expiration
- t.boolean :is_admin, :default => false
- t.timestamps
- end
- end
- def self.down
- drop_table :users
- end
- end
- # Creates a table with auto incrementing integer id as primary key.
Add Comment
Please, Sign In to add comment