comee_core 0.1.58 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc17265c097efde637f01ce47d802dc358d7c4eee301d3b607a8f7d1ce71796b
|
4
|
+
data.tar.gz: e74e207006b6aec49ce1d0058331aeb440d200fd430bc9577c02c36fec52e8f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b62c8b0421cdf260ea4b5fc152cedd7edac43dca8af1f56709a1523be5926dd7a15f7d398ea1b17363a50ef982b30e781d90de7bb807cb29bdad89d30b911dc3
|
7
|
+
data.tar.gz: aa49013dea68988bb5cb45d582f68238b1226ab00c5cedb8f3bcaaf1560c963cbf74f942d249a99b2b24f0533b6250edda517136e8c2d367b6df01b1204a72fa
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# This migration comes from active_storage (originally 20170806125915)
|
2
|
+
class CreateActiveStorageTables < ActiveRecord::Migration[7.0]
|
3
|
+
def change
|
4
|
+
# Use Active Record's configured type for primary and foreign keys
|
5
|
+
primary_key_type, foreign_key_type = primary_and_foreign_key_types
|
6
|
+
|
7
|
+
create_table :active_storage_blobs, id: primary_key_type do |t|
|
8
|
+
t.string :key, null: false
|
9
|
+
t.string :filename, null: false
|
10
|
+
t.string :content_type
|
11
|
+
t.text :metadata
|
12
|
+
t.string :service_name, null: false
|
13
|
+
t.bigint :byte_size, null: false
|
14
|
+
t.string :checksum
|
15
|
+
|
16
|
+
if connection.supports_datetime_with_precision?
|
17
|
+
t.datetime :created_at, precision: 6, null: false
|
18
|
+
else
|
19
|
+
t.datetime :created_at, null: false
|
20
|
+
end
|
21
|
+
|
22
|
+
t.index [:key], unique: true
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table :active_storage_attachments, id: primary_key_type do |t|
|
26
|
+
t.string :name, null: false
|
27
|
+
t.references :record, null: false, polymorphic: true, index: false, type: foreign_key_type
|
28
|
+
t.references :blob, null: false, type: foreign_key_type
|
29
|
+
|
30
|
+
if connection.supports_datetime_with_precision?
|
31
|
+
t.datetime :created_at, precision: 6, null: false
|
32
|
+
else
|
33
|
+
t.datetime :created_at, null: false
|
34
|
+
end
|
35
|
+
|
36
|
+
t.index %i[record_type record_id name blob_id], name: :index_active_storage_attachments_uniqueness, unique: true
|
37
|
+
t.foreign_key :active_storage_blobs, column: :blob_id
|
38
|
+
end
|
39
|
+
|
40
|
+
create_table :active_storage_variant_records, id: primary_key_type do |t|
|
41
|
+
t.belongs_to :blob, null: false, index: false, type: foreign_key_type
|
42
|
+
t.string :variation_digest, null: false
|
43
|
+
|
44
|
+
t.index %i[blob_id variation_digest], name: :index_active_storage_variant_records_uniqueness, unique: true
|
45
|
+
t.foreign_key :active_storage_blobs, column: :blob_id
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
|
51
|
+
def primary_and_foreign_key_types
|
52
|
+
config = Rails.configuration.generators
|
53
|
+
setting = config.options[config.orm][:primary_key_type]
|
54
|
+
primary_key_type = setting || :primary_key
|
55
|
+
foreign_key_type = setting || :bigint
|
56
|
+
[primary_key_type, foreign_key_type]
|
57
|
+
end
|
58
|
+
end
|
data/lib/comee/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comee_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.59
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henock L.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|
@@ -408,6 +408,7 @@ files:
|
|
408
408
|
- db/migrate/20231121094339_create_comee_core_quotation_requests.rb
|
409
409
|
- db/migrate/20231121132709_create_comee_core_quotation_request_items.rb
|
410
410
|
- db/migrate/20231122094424_create_comee_core_external_rfqs.rb
|
411
|
+
- db/migrate/20231124120907_create_active_storage_tables.active_storage.rb
|
411
412
|
- db/migrate/20231125111539_create_comee_core_lookups.rb
|
412
413
|
- db/migrate/20231125115522_create_comee_core_customs_details.rb
|
413
414
|
- db/migrate/20231125122723_create_comee_core_purchase_orders.rb
|