class CreateUsers < ActiveRecord::Migration def change create_table :users do |t| t.string :login, :limit => 50, :null => false t.string :email, :limit => 50, :null => false t.string :crypted_password, :limit => 40, :null => false t.string :salt, :limit => 40, :null => false t.string :crypted_activation_key, :limit => 40 t.integer :role, :default => 10 t.timestamps end end def down drop_table :users end end