20150220001357_add_photos_export_to_user.rb 409 Bytes
Newer Older
1
class AddPhotosExportToUser < ActiveRecord::Migration[4.2]
2 3 4 5 6 7 8 9 10 11 12 13
  def up
    add_column :users, :exported_photos_file, :string
    add_column :users, :exported_photos_at, :datetime
    add_column :users, :exporting_photos, :boolean, default: false
  end

  def down
    remove_column :users, :exported_photos_file
    remove_column :users, :exported_photos_at
    remove_column :users, :exporting_photos
  end
end