Sha256: e25f7170ad7e466e3f1124e3cedc088c1400851aa3ce21d36eed209a83f0d77e
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
class UpgradeClearanceToDiesel < ActiveRecord::Migration def self.up change_table(:users) do |t| t.string :encrypted_password, :limit => 128 t.string :salt, :limit => 128 t.string :confirmation_token, :limit => 128 t.string :remember_token, :limit => 128 end add_index :users, :email add_index :users, :remember_token end def self.down change_table(:users) do |t| t.remove :encrypted_password,:salt,:confirmation_token,:remember_token end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.1.1 | spec/dummy/db/migrate/20120129091339_upgrade_clearance_to_diesel.rb |