Class: CreateReports

Inherits:
Object
  • Object
show all
Defined in:
lib/osa/migrations/00004_create_reports.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/osa/migrations/00004_create_reports.rb', line 5

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