Created
April 28, 2011 21:16
-
-
Save buk/947356 to your computer and use it in GitHub Desktop.
rails g migration AddCustomerAppointmentToReport
This file contains hidden or 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 g migration AddCustomerAppointmentToReport customer_appointment:date | |
## migration file | |
class AddCustomerAppointmentToReport < ActiveRecord::Migration | |
def self.up | |
add_column :reports, :customer_appointment, :date | |
end | |
def self.down | |
remove_column :reports, :customer_appointment | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment