thecore_print_commons 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20160323152041_create_printers.rb +5 -5
- data/db/migrate/20160413115407_add_temperature_to_printer.rb +2 -2
- data/db/migrate/20160519093702_create_print_templates.rb +2 -2
- data/db/migrate/20160519124051_add_print_template_id_to_printer.rb +1 -1
- data/db/migrate/20160629140729_add_default_to_printer.rb +2 -2
- data/db/migrate/20160629140730_add_port_to_printer.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3b7503441e21a848118fe588d5cd9d814d13df3f9d1716c1ff9c5c909f93323
|
4
|
+
data.tar.gz: d36bf02ed4a6079ea9ea7c163fb8b8f9aff7dd51cc9e7882fdaf219a02dd2e73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e0caa41391da6343ea0588c4b5649ea9b37625f3be8a8d033f772414393fc52417272b4434ec1a4c746a6a91305ca032bd0a12d5610fd89a146848ae7d7e64f
|
7
|
+
data.tar.gz: af833505c5e7edbf97ce78231202849a80428b2e8c52dc47cf9d8c6c5d0264f2dccd553d8cc30f94b02a17d20d7f37696fe5fd736721e8820d111d25e31751c1
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class CreatePrinters < ActiveRecord::Migration[
|
1
|
+
class CreatePrinters < ActiveRecord::Migration[7.0]
|
2
2
|
def change
|
3
|
-
create_table :printers do |t|
|
3
|
+
create_table :printers, if_not_exists: true do |t|
|
4
4
|
t.string :name
|
5
5
|
t.text :description
|
6
6
|
t.string :ip
|
@@ -10,8 +10,8 @@ class CreatePrinters < ActiveRecord::Migration[4.2]
|
|
10
10
|
|
11
11
|
t.timestamps null: false
|
12
12
|
end
|
13
|
-
add_index :printers, :name
|
14
|
-
add_index :printers, :description
|
15
|
-
add_index :printers, :ip
|
13
|
+
add_index :printers, :name, if_not_exists: true
|
14
|
+
add_index :printers, :description, if_not_exists: true
|
15
|
+
add_index :printers, :ip, if_not_exists: true
|
16
16
|
end
|
17
17
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class CreatePrintTemplates < ActiveRecord::Migration[
|
1
|
+
class CreatePrintTemplates < ActiveRecord::Migration[7.0]
|
2
2
|
def change
|
3
|
-
create_table :print_templates do |t|
|
3
|
+
create_table :print_templates, if_not_exists: true do |t|
|
4
4
|
t.string :name
|
5
5
|
t.text :description
|
6
6
|
t.text :template
|
@@ -1,5 +1,5 @@
|
|
1
|
-
class AddDefaultToPrinter < ActiveRecord::Migration[
|
1
|
+
class AddDefaultToPrinter < ActiveRecord::Migration[7.0]
|
2
2
|
def change
|
3
|
-
add_column :printers, :default, :boolean, default: false
|
3
|
+
add_column :printers, :default, :boolean, default: false, if_not_exists: true
|
4
4
|
end
|
5
5
|
end
|