docbrown/db/migrate/20181026112019_add_export_fields_to_users.rb
rhymes 915e2d77b6 Export articles/posts (#576)
* Add EditorConfig file for all editors

* Add article export service

* Add setting to request an export of all articles

* On the outside they are called posts

* Add articles exported email to mailer and service

* Refactor to one public method and test flags

* Trigger the export if it was requested and send the email

* Recreated migration file with generic export fields

* Rename fields and switch to a whitelist

* Refactor ArticleExportService into a more generic structure

* Rename articles_exported_email to export_email

* Fix notify mailer spec

* Rename Exporter::Exporter to Exporter::Service

* Remove commented out line

* Removed body_html, coordinates and updated_at from export

* Invert DJ config

* Update spec
2018-11-21 11:13:36 -05:00

6 lines
197 B
Ruby

class AddExportFieldsToUsers < ActiveRecord::Migration[5.1]
def change
add_column :users, :export_requested, :boolean, default: false
add_column :users, :exported_at, :datetime
end
end