Sha256: 9d67ab7ab18015a7c5ca172cf560b022dd24b707c216f8c2d021e4137d7ff432
Contents?: true
Size: 793 Bytes
Versions: 82
Compression:
Stored size: 793 Bytes
Contents
class LoginSugar < ActiveRecord::Migration def self.up create_table :users, :force => true 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
82 entries across 82 versions & 1 rubygems