Sha256: e83045c4e6841a6fae08adc543cc0e85dff4ea461fb2a33d8e3a83484ed2860e
Contents?: true
Size: 777 Bytes
Versions: 41
Compression:
Stored size: 777 Bytes
Contents
class LoginSugar < ActiveRecord::Migration def self.up create_table :users do |t| t.column :login, :string, :limit => 80, :null => false t.column :salted_password, :string, :limit => 40, :null => false t.column :email, :string, :limit => 60, :null => false t.column :first_name, :string, :limit => 40 t.column :last_name, :string, :limit => 40 t.column :salt, 'CHAR(40)', :null => false t.column :verified, :boolean, :default => false t.column :role, :string, :limit => 40, :default => nil t.column :security_token, 'CHAR(40)', :default => nil t.column :token_expiry, :datetime, :default => nil t.column :deleted, :boolean, :default => false end end def self.down drop_table :users end end
Version data entries
41 entries across 41 versions & 1 rubygems