From 026bc1eaae52955d39f52661d9357856bd3b4074 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 20 Jul 2021 09:35:39 +0200 Subject: [PATCH] Fixed migration [SCI-5902] --- db/migrate/20210716124649_create_label_templates.rb | 8 ++++---- db/structure.sql | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/db/migrate/20210716124649_create_label_templates.rb b/db/migrate/20210716124649_create_label_templates.rb index e12a2a1fb..1ee42c410 100644 --- a/db/migrate/20210716124649_create_label_templates.rb +++ b/db/migrate/20210716124649_create_label_templates.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true -class LabelTemplate < ApplicationRecord - enum language_type: { zpl: 0 } -end - class CreateLabelTemplates < ActiveRecord::Migration[6.1] + class LabelTemplate < ApplicationRecord + enum language_type: { zpl: 0 } + end + def change create_table :label_templates do |t| t.string :name, null: false diff --git a/db/structure.sql b/db/structure.sql index 9dc4db663..a8903a430 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -7308,7 +7308,6 @@ INSERT INTO "schema_migrations" (version) VALUES ('20210410100006'), ('20210506125657'), ('20210622101238'), -('20210715125349'), ('20210716124649');