caboose-cms 0.2.97 → 0.2.98

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTVjZDI1MjM3YTNhYzE3NmZkYjI5OTQxZjk0NDJhNzJjZGEzNWMxOA==
4
+ OTllOTM4NTc2MzRmMjczYjE2Mzk5ZTRhZTc0ODM5ZTBiNjc1YjY5OA==
5
5
  data.tar.gz: !binary |-
6
- MTdmNmVhNjBhOWYxODNhZmNmZDc2MjFjZDViYTk4MmNhZTQ4ZmQ5YQ==
6
+ ZmIwNzdmZmRiMWEzNTc2YmU2NTQ5NmI2MGQzMjMxMjk0MzE4OTIzMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Y2M0YjRiNmJhZDQ0NmMxYWY3NjJhZTg0Mjc0NzkyMzM0YjdmODJiMWU5MjBi
10
- N2FmMWFjZTczOGFmMDA0YmQwM2EyZjBiNjIwODY0OTFhNjNkMDJmYjczMDMx
11
- ZmJmNWZlYzg1ZmQxN2YxNjAzZWJjZTNiNjk0NDhiZDg0NThlOTA=
9
+ OGMxNGMyYmQwMDQ4ODAxM2VlNWI3NzE0OWY1MjQ2YzVlNDA2NTJjZDVmMTAw
10
+ N2UzYzFkYzE4NjdmZDZhYTg0OTdkOTJlNDA1Yzc1MzJlZTQ1MTNlMzYwM2Nh
11
+ MzExNDRmM2E2MjE5M2U4ZjdmNjg0YzJmYjVmNjg0MzUwZTIwZGE=
12
12
  data.tar.gz: !binary |-
13
- YWY1NmY3MTA4N2NmYzZhOWI5YTg3NTk5ZmY2Y2U4YjAwMGJlZmQ0ZjhlMjc3
14
- MDI5MWRjZmIwOTRiMTZjNmM1Y2EzMmEzMmMzYzNjMzNiYWJkYjFhZDViZjI2
15
- ZmRlYTA4YWJjMTRjMGZmODRmMzAyZjdmOTM2NGQ5OTYyNTc2NTI=
13
+ YTVlZTVlYTlhNThmNjg1YTI3NzRiOWMyYWZiOGQzMzFiOWI0OGJmMTliNTRl
14
+ ODQ2MTE4Y2M4ZjgyZGZkOTJkYmQxM2ViYmFmMTVjZDUxYWZlZjVhYjNiMjI3
15
+ NWRjZDYwOTFkYWI0ZGFlM2ZmZDk1YjBlMTgwMWI4NzkxM2NlNWQ=
@@ -50,7 +50,7 @@ class Caboose::Utilities::Schema
50
50
  end
51
51
 
52
52
  # Column exists, but not with the correct data type, try to change it
53
- else
53
+ else
54
54
 
55
55
  # Add a temp column
56
56
  if col.count > 2
@@ -75,12 +75,16 @@ class Caboose::Utilities::Schema
75
75
 
76
76
  # Remove the old column and rename the new one
77
77
  c.remove_column tbl, col[0]
78
- c.rename_column tbl, "#{col[0]}_temp", col[0]
78
+ c.rename_column tbl, "#{col[0]}_temp", col[0]
79
79
 
80
80
  end
81
81
  end
82
- end
82
+ end
83
83
  create_indexes
84
+
85
+ self.schema.each do |model, columns|
86
+ model.reset_column_information
87
+ end
84
88
  end
85
89
 
86
90
  # Verifies (non-destructively) that the given indexes exist in the database.
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.2.97'
2
+ VERSION = '0.2.98'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.97
4
+ version: 0.2.98
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry