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

Version Path
backlog-0.37.2 db/migrate/011_login_sugar.rb
backlog-0.37.1 db/migrate/011_login_sugar.rb
backlog-0.36.2 db/migrate/011_login_sugar.rb
backlog-0.17.1 db/migrate/011_login_sugar.rb
backlog-0.17.2 db/migrate/011_login_sugar.rb
backlog-0.17.3 db/migrate/011_login_sugar.rb
backlog-0.17.4 db/migrate/011_login_sugar.rb
backlog-0.17.5 db/migrate/011_login_sugar.rb
backlog-0.18.0 db/migrate/011_login_sugar.rb
backlog-0.17.6 db/migrate/011_login_sugar.rb
backlog-0.19.0 db/migrate/011_login_sugar.rb
backlog-0.20.0 db/migrate/011_login_sugar.rb
backlog-0.20.1 db/migrate/011_login_sugar.rb
backlog-0.21.0 db/migrate/011_login_sugar.rb
backlog-0.21.2 db/migrate/011_login_sugar.rb
backlog-0.21.1 db/migrate/011_login_sugar.rb
backlog-0.21.3 db/migrate/011_login_sugar.rb
backlog-0.22.1 db/migrate/011_login_sugar.rb
backlog-0.22.0 db/migrate/011_login_sugar.rb
backlog-0.23.0 db/migrate/011_login_sugar.rb