ancestry 1.0.0 → 1.1.0

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.
@@ -1,9 +1,19 @@
1
1
  ActiveRecord::Schema.define(:version => 0) do
2
2
  create_table :test_nodes, :force => true do |t|
3
3
  t.string :ancestry
4
+ t.integer :depth_cache
4
5
  end
5
6
 
6
7
  create_table :alternative_test_nodes, :force => true do |t|
7
8
  t.string :alternative_ancestry
8
9
  end
10
+
11
+ create_table :other_test_nodes, :force => true do |t|
12
+ t.string :ancestry
13
+ end
14
+
15
+ create_table :parent_id_test_nodes, :force => true do |t|
16
+ t.string :ancestry
17
+ t.integer :parent_id
18
+ end
9
19
  end
@@ -27,5 +27,5 @@ def load_schema
27
27
  end
28
28
  ActiveRecord::Base.establish_connection(config[db_adapter])
29
29
  load(File.dirname(__FILE__) + "/schema.rb")
30
- require File.dirname(__FILE__) + '/../rails/init.rb'
30
+ require File.dirname(__FILE__) + '/../init.rb'
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ancestry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kroes
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-16 00:00:00 +02:00
12
+ date: 2009-10-22 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -34,10 +34,8 @@ files:
34
34
  - ancestry.gemspec
35
35
  - init.rb
36
36
  - install.rb
37
- - uninstall.rb
38
37
  - lib/ancestry/acts_as_tree.rb
39
38
  - lib/ancestry.rb
40
- - rails/init.rb
41
39
  - test/acts_as_tree_test.rb
42
40
  - test/ancestry_plugin.sqlite3.db
43
41
  - test/database.yml
@@ -1 +0,0 @@
1
- require 'ancestry'
@@ -1 +0,0 @@
1
- # Uninstall hook code here