class RequestLogAnalyzer::Database::Warning
Public Class Methods
create_table!()
click to toggle source
# File lib/request_log_analyzer/database/warning.rb 2 def self.create_table! 3 unless database.connection.table_exists?(:warnings) 4 database.connection.create_table(:warnings) do |t| 5 t.column :warning_type, :string, limit: 30, null: false 6 t.column :message, :string 7 t.column :source_id, :integer 8 t.column :lineno, :integer 9 end 10 end 11 end