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.0.0 db/migrate/011_login_sugar.rb
backlog-0.0.1 db/migrate/011_login_sugar.rb
backlog-0.0.2 db/migrate/011_login_sugar.rb
backlog-0.0.5 db/migrate/011_login_sugar.rb
backlog-0.0.4 db/migrate/011_login_sugar.rb
backlog-0.1.0 db/migrate/011_login_sugar.rb
backlog-0.1.1 db/migrate/011_login_sugar.rb
backlog-0.1.2 db/migrate/011_login_sugar.rb
backlog-0.10.0 db/migrate/011_login_sugar.rb
backlog-0.10.1 db/migrate/011_login_sugar.rb
backlog-0.10.2 db/migrate/011_login_sugar.rb
backlog-0.10.4 db/migrate/011_login_sugar.rb
backlog-0.10.3 db/migrate/011_login_sugar.rb
backlog-0.10.5 db/migrate/011_login_sugar.rb
backlog-0.10.7 db/migrate/011_login_sugar.rb
backlog-0.10.6 db/migrate/011_login_sugar.rb
backlog-0.12.0 db/migrate/011_login_sugar.rb
backlog-0.10.8 db/migrate/011_login_sugar.rb
backlog-0.11.0 db/migrate/011_login_sugar.rb
backlog-0.12.2 db/migrate/011_login_sugar.rb