hierarchical_db 0.0.7 → 0.0.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 339f668fcaee449c43b2829fe10a8888722a604b
|
4
|
+
data.tar.gz: 56bfc18b39750c42fcf33ec8683f42e0d94f5726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f23d0a7aa1a9a466b389835a6affbf4339a8af498dc6caa996f83d87628f9cd16e09a456c5d2eb930af0aee55249b3bdc763ccc1ebc837c8f02f4e250f82991f
|
7
|
+
data.tar.gz: 6019bd8ba4598bca97078de94256fa8e317cf22403565a0c82fd1ff71867dcdaccc109404781977d763b31006f0f4ad4ce44df43a88cc2be3f078c0d5877c6b2
|
data/hierarchical_db.gemspec
CHANGED
@@ -14,7 +14,7 @@ module HierarchicalDb
|
|
14
14
|
source_root File.expand_path("../templates", __FILE__)
|
15
15
|
|
16
16
|
def copy_migration
|
17
|
-
migration_template "migration_existing.rb", "db/migrate/hierarchical_db_to_#{plural_name.downcase}"
|
17
|
+
migration_template "migration_existing.rb", "db/migrate/hierarchical_db_to_#{plural_name.downcase}.rb"
|
18
18
|
end
|
19
19
|
|
20
20
|
def migration_data
|
@@ -1,7 +1,9 @@
|
|
1
1
|
class HierarchicalDb<%= plural_name.camelize %> < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
|
-
|
4
|
-
|
3
|
+
change do |t|
|
4
|
+
add_column :<%= plural_name %>, :lft, :integer
|
5
|
+
add_column :<%= plural_name %>, :rgt, :integer
|
6
|
+
# <%= migration_data %>
|
5
7
|
end
|
6
8
|
end
|
7
9
|
|