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

10 lines
197 B
Ruby

class AddEnabledToPhotos < ActiveRecord::Migration[5.1]
def self.up
add_column :photos, :enabled, :boolean, default: true
end
def self.down
remove_column :photos, :enabled
end
end