Add migration for legacy logs
parent
9f185427e2
commit
76582d7228
|
@ -0,0 +1,5 @@
|
|||
class EnsureLogHasType < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
Log.where(type: nil).update_all(type: "info")
|
||||
end
|
||||
end
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue