hierarchical_db 0.0.4 → 0.0.5
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 +4 -4
- data/hierarchical_db-0.0.4.gem +0 -0
- data/hierarchical_db.gemspec +1 -1
- data/lib/generators/templates/migration_existing.rb +14 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f998bb2f15e0360c10500663b39b9699acb54a99
|
4
|
+
data.tar.gz: ce212f37c1dada37fce70608dbcaa89f3e893e28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78d3fac6c800f40ac6b46eda31b7117909506da2984a5417cf015f174cb732ad8859e20e5c322686085fe39904d66d9649efce93ed027e4d7d6f4099f72fb9ea
|
7
|
+
data.tar.gz: e00cd3b006b9ec55b4b2e9081738699024a60fe2f5c2969ebde81f198f7f71c22ccfbe5d5b25c1fb43d8c155b578c9e753ca2809852bf06c1ab5b2fc18c53f83
|
Binary file
|
data/hierarchical_db.gemspec
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
class HierarchicalDb<%= plural_name.camelize %> < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
change_table(:<%= plural_name %>) do |t|
|
4
|
+
t.integer :lft
|
5
|
+
t.integer :rgt
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.down
|
10
|
+
# By default, we don't want to make any assumption about how to roll back a migration when your
|
11
|
+
# model already existed. Please edit below which fields you would like to remove in this migration.
|
12
|
+
raise ActiveRecord::IrreversibleMigration
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hierarchical_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gustavo
|
@@ -58,9 +58,11 @@ files:
|
|
58
58
|
- hierarchical_db-0.0.1.gem
|
59
59
|
- hierarchical_db-0.0.2.gem
|
60
60
|
- hierarchical_db-0.0.3.gem
|
61
|
+
- hierarchical_db-0.0.4.gem
|
61
62
|
- hierarchical_db.gemspec
|
62
63
|
- lib/generators/hierarchical_db/templates/migration_existing.rb
|
63
64
|
- lib/generators/hierarchical_db_generator.rb
|
65
|
+
- lib/generators/templates/migration_existing.rb
|
64
66
|
- lib/hierarchical_db.rb
|
65
67
|
- lib/hierarchical_db/version.rb
|
66
68
|
homepage: https://github.com/ginzunza/hierarchical_db
|