mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
12 lines
260 B
Ruby
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
|