Created
November 25, 2008 13:20
-
-
Save oki/28911 to your computer and use it in GitHub Desktop.
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
class AddImgToPortfolios < ActiveRecord::Migration | |
def self.up | |
add_column :portfolios, :img_file_name, :string | |
add_column :portfolios, :img_content_type, :string | |
add_column :portfolios, :img_file_size, :integer | |
add_column :portfolios, :img_updated_at, :datetime | |
end | |
def self.down | |
remove_column :portfolios, :img_file_name | |
remove_column :portfolios, :img_content_type | |
remove_column :portfolios, :img_file_size | |
remove_column :portfolios, :img_updated_at | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment