Created
March 30, 2012 15:00
-
-
Save DiveInto/2252126 to your computer and use it in GitHub Desktop.
add field using rails generate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails generate migration add_password_to_users encrypted_password:string | |
class AddPasswordToUsers < ActiveRecord::Migration | |
def self.up | |
add_column :users, :encrypted_password, :string | |
end | |
def self.down | |
remove_column :users, :encrypted_password | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment