Add migration for legacy logs

pull/765/head
Rick Carlino 2018-03-31 13:37:13 -05:00
parent 9f185427e2
commit 76582d7228
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class EnsureLogHasType < ActiveRecord::Migration[5.1]
def change
Log.where(type: nil).update_all(type: "info")
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180330143232) do
ActiveRecord::Schema.define(version: 20180331183559) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"