Variety of small changes (mostly to properties) plus a few "in the
[selectricity] / vendor / plugins / login_engine / db / migrate / 001_initial_schema.rb
1 class InitialSchema < ActiveRecord::Migration
2   def self.up
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
19     end
20   end
21
22   def self.down
23     drop_table LoginEngine.config(:user_table)
24   end
25 end

Benjamin Mako Hill || Want to submit a patch?