2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2018-11-13 02:27:31 -05:00
|
|
|
class CreateSpamLogs < ActiveRecord::Migration[4.2]
|
2016-01-09 14:30:34 -05:00
|
|
|
def change
|
|
|
|
create_table :spam_logs do |t|
|
|
|
|
t.integer :user_id
|
|
|
|
t.string :source_ip
|
|
|
|
t.string :user_agent
|
|
|
|
t.boolean :via_api
|
|
|
|
t.integer :project_id
|
|
|
|
t.string :noteable_type
|
|
|
|
t.string :title
|
|
|
|
t.text :description
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|