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

Version Path
backlog-0.12.1 db/migrate/011_login_sugar.rb
backlog-0.12.4 db/migrate/011_login_sugar.rb
backlog-0.12.3 db/migrate/011_login_sugar.rb
backlog-0.13.0 db/migrate/011_login_sugar.rb
backlog-0.13.1 db/migrate/011_login_sugar.rb
backlog-0.14.0 db/migrate/011_login_sugar.rb
backlog-0.14.3 db/migrate/011_login_sugar.rb
backlog-0.14.2 db/migrate/011_login_sugar.rb
backlog-0.14.1 db/migrate/011_login_sugar.rb
backlog-0.15.0 db/migrate/011_login_sugar.rb
backlog-0.14.4 db/migrate/011_login_sugar.rb
backlog-0.16.0 db/migrate/011_login_sugar.rb
backlog-0.15.1 db/migrate/011_login_sugar.rb
backlog-0.17.0 db/migrate/011_login_sugar.rb
backlog-0.2.0 db/migrate/011_login_sugar.rb
backlog-0.2.1 db/migrate/011_login_sugar.rb
backlog-0.3.0 db/migrate/011_login_sugar.rb
backlog-0.3.3 db/migrate/011_login_sugar.rb
backlog-0.3.1 db/migrate/011_login_sugar.rb
backlog-0.3.2 db/migrate/011_login_sugar.rb