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

10 lines
195 B
Ruby

class PhotoShowcase < ActiveRecord::Migration[5.1]
def self.up
add_column :photos, :featured, :boolean, default: false
end
def self.down
remove_column :photos, :featured
end
end