Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Created July 16, 2010 14:51
Show Gist options
  • Select an option

  • Save dmerrick/478454 to your computer and use it in GitHub Desktop.

Select an option

Save dmerrick/478454 to your computer and use it in GitHub Desktop.
class AddPasswordToOwner < ActiveRecord::Migration
def self.up
add_column :owners, :crypted_password, :string, :limit => 40
add_column :owners, :salt, :string, :limit => 40
end
def self.down
remove_column :owners, :crypted_password
remove_column :owners, :salt
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment