9 lines
178 B
Ruby
9 lines
178 B
Ruby
class AddFileToPhoto < ActiveRecord::Migration
|
|
def self.up
|
|
add_column :photos, :attachment, :string
|
|
end
|
|
|
|
def self.down
|
|
remove_column :photos, :attachment
|
|
end
|
|
end
|