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 11:15:26 -05:00

10 lines
192 B
Ruby

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