* 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
6 lines
197 B
Ruby
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
|