Sha256: 224bb0f2888c29aaaec43e7986ffcbd93f52a65aa115573f0a7a84a85913aad2

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true
require 'active_record/migration'

class CreateReports < ActiveRecord::Migration[5.0]
  def change
    create_table :reports do |t|
      t.text :sender, null: false
      t.text :sender_domain, null: false
      t.text :subject, null: false
      t.boolean :flagged, null: false
      t.boolean :blacklisted, null: false
      t.datetime :received_at, null: false
      t.datetime :reported_at, null: false
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
osa-0.2.3 lib/osa/migrations/00004_create_reports.rb
osa-0.2.2 lib/osa/migrations/00004_create_reports.rb
osa-0.2.1 lib/osa/migrations/00004_create_reports.rb
osa-0.2.0 lib/osa/migrations/00004_create_reports.rb