1 class InitialSchema < ActiveRecord::Migration
3 create_table LoginEngine.config(:user_table), :force => true do |t|
4 t.column "login", :string, :limit => 80, :default => "", :null => false
5 t.column "salted_password", :string, :limit => 40, :default => "", :null => false
6 t.column "email", :string, :limit => 60, :default => "", :null => false
7 t.column "firstname", :string, :limit => 40
8 t.column "lastname", :string, :limit => 40
9 t.column "salt", :string, :limit => 40, :default => "", :null => false
10 t.column "verified", :integer, :default => 0
11 t.column "role", :string, :limit => 40
12 t.column "security_token", :string, :limit => 40
13 t.column "token_expiry", :datetime
14 t.column "created_at", :datetime
15 t.column "updated_at", :datetime
16 t.column "logged_in_at", :datetime
17 t.column "deleted", :integer, :default => 0
18 t.column "delete_after", :datetime
23 drop_table LoginEngine.config(:user_table)