mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Fixed migration [SCI-5902]
This commit is contained in:
parent
a8f8ab8ba9
commit
026bc1eaae
2 changed files with 4 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class LabelTemplate < ApplicationRecord
|
|
||||||
enum language_type: { zpl: 0 }
|
|
||||||
end
|
|
||||||
|
|
||||||
class CreateLabelTemplates < ActiveRecord::Migration[6.1]
|
class CreateLabelTemplates < ActiveRecord::Migration[6.1]
|
||||||
|
class LabelTemplate < ApplicationRecord
|
||||||
|
enum language_type: { zpl: 0 }
|
||||||
|
end
|
||||||
|
|
||||||
def change
|
def change
|
||||||
create_table :label_templates do |t|
|
create_table :label_templates do |t|
|
||||||
t.string :name, null: false
|
t.string :name, null: false
|
||||||
|
|
|
@ -7308,7 +7308,6 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||||
('20210410100006'),
|
('20210410100006'),
|
||||||
('20210506125657'),
|
('20210506125657'),
|
||||||
('20210622101238'),
|
('20210622101238'),
|
||||||
('20210715125349'),
|
|
||||||
('20210716124649');
|
('20210716124649');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue