1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/db/migrate/20101008103053_add_details_to_photo.rb
2021-07-16 12:58:13 -05:00

12 lines
260 B
Ruby

class AddDetailsToPhoto < ActiveRecord::Migration[5.1]
def self.up
add_column :photos, :title, :string
add_column :photos, :description, :text
end
def self.down
remove_column :photos, :title
remove_column :photos, :description
end
end