activerecord 4.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

Files changed (221) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +1372 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.rdoc +218 -0
  5. data/examples/performance.rb +184 -0
  6. data/examples/simple.rb +14 -0
  7. data/lib/active_record.rb +173 -0
  8. data/lib/active_record/aggregations.rb +266 -0
  9. data/lib/active_record/association_relation.rb +22 -0
  10. data/lib/active_record/associations.rb +1724 -0
  11. data/lib/active_record/associations/alias_tracker.rb +87 -0
  12. data/lib/active_record/associations/association.rb +253 -0
  13. data/lib/active_record/associations/association_scope.rb +194 -0
  14. data/lib/active_record/associations/belongs_to_association.rb +111 -0
  15. data/lib/active_record/associations/belongs_to_polymorphic_association.rb +40 -0
  16. data/lib/active_record/associations/builder/association.rb +149 -0
  17. data/lib/active_record/associations/builder/belongs_to.rb +116 -0
  18. data/lib/active_record/associations/builder/collection_association.rb +91 -0
  19. data/lib/active_record/associations/builder/has_and_belongs_to_many.rb +124 -0
  20. data/lib/active_record/associations/builder/has_many.rb +15 -0
  21. data/lib/active_record/associations/builder/has_one.rb +23 -0
  22. data/lib/active_record/associations/builder/singular_association.rb +38 -0
  23. data/lib/active_record/associations/collection_association.rb +634 -0
  24. data/lib/active_record/associations/collection_proxy.rb +1027 -0
  25. data/lib/active_record/associations/has_many_association.rb +184 -0
  26. data/lib/active_record/associations/has_many_through_association.rb +238 -0
  27. data/lib/active_record/associations/has_one_association.rb +105 -0
  28. data/lib/active_record/associations/has_one_through_association.rb +36 -0
  29. data/lib/active_record/associations/join_dependency.rb +282 -0
  30. data/lib/active_record/associations/join_dependency/join_association.rb +122 -0
  31. data/lib/active_record/associations/join_dependency/join_base.rb +22 -0
  32. data/lib/active_record/associations/join_dependency/join_part.rb +71 -0
  33. data/lib/active_record/associations/preloader.rb +203 -0
  34. data/lib/active_record/associations/preloader/association.rb +162 -0
  35. data/lib/active_record/associations/preloader/belongs_to.rb +17 -0
  36. data/lib/active_record/associations/preloader/collection_association.rb +24 -0
  37. data/lib/active_record/associations/preloader/has_many.rb +17 -0
  38. data/lib/active_record/associations/preloader/has_many_through.rb +19 -0
  39. data/lib/active_record/associations/preloader/has_one.rb +23 -0
  40. data/lib/active_record/associations/preloader/has_one_through.rb +9 -0
  41. data/lib/active_record/associations/preloader/singular_association.rb +21 -0
  42. data/lib/active_record/associations/preloader/through_association.rb +96 -0
  43. data/lib/active_record/associations/singular_association.rb +86 -0
  44. data/lib/active_record/associations/through_association.rb +96 -0
  45. data/lib/active_record/attribute.rb +149 -0
  46. data/lib/active_record/attribute_assignment.rb +212 -0
  47. data/lib/active_record/attribute_decorators.rb +66 -0
  48. data/lib/active_record/attribute_methods.rb +439 -0
  49. data/lib/active_record/attribute_methods/before_type_cast.rb +71 -0
  50. data/lib/active_record/attribute_methods/dirty.rb +181 -0
  51. data/lib/active_record/attribute_methods/primary_key.rb +128 -0
  52. data/lib/active_record/attribute_methods/query.rb +40 -0
  53. data/lib/active_record/attribute_methods/read.rb +103 -0
  54. data/lib/active_record/attribute_methods/serialization.rb +70 -0
  55. data/lib/active_record/attribute_methods/time_zone_conversion.rb +65 -0
  56. data/lib/active_record/attribute_methods/write.rb +83 -0
  57. data/lib/active_record/attribute_set.rb +77 -0
  58. data/lib/active_record/attribute_set/builder.rb +86 -0
  59. data/lib/active_record/attributes.rb +139 -0
  60. data/lib/active_record/autosave_association.rb +439 -0
  61. data/lib/active_record/base.rb +317 -0
  62. data/lib/active_record/callbacks.rb +313 -0
  63. data/lib/active_record/coders/json.rb +13 -0
  64. data/lib/active_record/coders/yaml_column.rb +38 -0
  65. data/lib/active_record/connection_adapters/abstract/connection_pool.rb +659 -0
  66. data/lib/active_record/connection_adapters/abstract/database_limits.rb +67 -0
  67. data/lib/active_record/connection_adapters/abstract/database_statements.rb +373 -0
  68. data/lib/active_record/connection_adapters/abstract/query_cache.rb +95 -0
  69. data/lib/active_record/connection_adapters/abstract/quoting.rb +133 -0
  70. data/lib/active_record/connection_adapters/abstract/savepoints.rb +21 -0
  71. data/lib/active_record/connection_adapters/abstract/schema_creation.rb +125 -0
  72. data/lib/active_record/connection_adapters/abstract/schema_definitions.rb +574 -0
  73. data/lib/active_record/connection_adapters/abstract/schema_dumper.rb +50 -0
  74. data/lib/active_record/connection_adapters/abstract/schema_statements.rb +991 -0
  75. data/lib/active_record/connection_adapters/abstract/transaction.rb +219 -0
  76. data/lib/active_record/connection_adapters/abstract_adapter.rb +487 -0
  77. data/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +883 -0
  78. data/lib/active_record/connection_adapters/column.rb +82 -0
  79. data/lib/active_record/connection_adapters/connection_specification.rb +275 -0
  80. data/lib/active_record/connection_adapters/mysql2_adapter.rb +282 -0
  81. data/lib/active_record/connection_adapters/mysql_adapter.rb +491 -0
  82. data/lib/active_record/connection_adapters/postgresql/array_parser.rb +93 -0
  83. data/lib/active_record/connection_adapters/postgresql/column.rb +20 -0
  84. data/lib/active_record/connection_adapters/postgresql/database_statements.rb +232 -0
  85. data/lib/active_record/connection_adapters/postgresql/oid.rb +36 -0
  86. data/lib/active_record/connection_adapters/postgresql/oid/array.rb +99 -0
  87. data/lib/active_record/connection_adapters/postgresql/oid/bit.rb +52 -0
  88. data/lib/active_record/connection_adapters/postgresql/oid/bit_varying.rb +13 -0
  89. data/lib/active_record/connection_adapters/postgresql/oid/bytea.rb +14 -0
  90. data/lib/active_record/connection_adapters/postgresql/oid/cidr.rb +46 -0
  91. data/lib/active_record/connection_adapters/postgresql/oid/date.rb +11 -0
  92. data/lib/active_record/connection_adapters/postgresql/oid/date_time.rb +27 -0
  93. data/lib/active_record/connection_adapters/postgresql/oid/decimal.rb +13 -0
  94. data/lib/active_record/connection_adapters/postgresql/oid/enum.rb +17 -0
  95. data/lib/active_record/connection_adapters/postgresql/oid/float.rb +21 -0
  96. data/lib/active_record/connection_adapters/postgresql/oid/hstore.rb +59 -0
  97. data/lib/active_record/connection_adapters/postgresql/oid/inet.rb +13 -0
  98. data/lib/active_record/connection_adapters/postgresql/oid/infinity.rb +13 -0
  99. data/lib/active_record/connection_adapters/postgresql/oid/integer.rb +11 -0
  100. data/lib/active_record/connection_adapters/postgresql/oid/json.rb +35 -0
  101. data/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb +23 -0
  102. data/lib/active_record/connection_adapters/postgresql/oid/money.rb +43 -0
  103. data/lib/active_record/connection_adapters/postgresql/oid/point.rb +43 -0
  104. data/lib/active_record/connection_adapters/postgresql/oid/range.rb +79 -0
  105. data/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb +15 -0
  106. data/lib/active_record/connection_adapters/postgresql/oid/time.rb +11 -0
  107. data/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb +97 -0
  108. data/lib/active_record/connection_adapters/postgresql/oid/uuid.rb +21 -0
  109. data/lib/active_record/connection_adapters/postgresql/oid/vector.rb +26 -0
  110. data/lib/active_record/connection_adapters/postgresql/oid/xml.rb +28 -0
  111. data/lib/active_record/connection_adapters/postgresql/quoting.rb +108 -0
  112. data/lib/active_record/connection_adapters/postgresql/referential_integrity.rb +30 -0
  113. data/lib/active_record/connection_adapters/postgresql/schema_definitions.rb +152 -0
  114. data/lib/active_record/connection_adapters/postgresql/schema_statements.rb +588 -0
  115. data/lib/active_record/connection_adapters/postgresql/utils.rb +77 -0
  116. data/lib/active_record/connection_adapters/postgresql_adapter.rb +754 -0
  117. data/lib/active_record/connection_adapters/schema_cache.rb +94 -0
  118. data/lib/active_record/connection_adapters/sqlite3_adapter.rb +628 -0
  119. data/lib/active_record/connection_adapters/statement_pool.rb +40 -0
  120. data/lib/active_record/connection_handling.rb +132 -0
  121. data/lib/active_record/core.rb +566 -0
  122. data/lib/active_record/counter_cache.rb +175 -0
  123. data/lib/active_record/dynamic_matchers.rb +140 -0
  124. data/lib/active_record/enum.rb +198 -0
  125. data/lib/active_record/errors.rb +252 -0
  126. data/lib/active_record/explain.rb +38 -0
  127. data/lib/active_record/explain_registry.rb +30 -0
  128. data/lib/active_record/explain_subscriber.rb +29 -0
  129. data/lib/active_record/fixture_set/file.rb +56 -0
  130. data/lib/active_record/fixtures.rb +1007 -0
  131. data/lib/active_record/gem_version.rb +15 -0
  132. data/lib/active_record/inheritance.rb +247 -0
  133. data/lib/active_record/integration.rb +113 -0
  134. data/lib/active_record/locale/en.yml +47 -0
  135. data/lib/active_record/locking/optimistic.rb +204 -0
  136. data/lib/active_record/locking/pessimistic.rb +77 -0
  137. data/lib/active_record/log_subscriber.rb +75 -0
  138. data/lib/active_record/migration.rb +1051 -0
  139. data/lib/active_record/migration/command_recorder.rb +197 -0
  140. data/lib/active_record/migration/join_table.rb +15 -0
  141. data/lib/active_record/model_schema.rb +340 -0
  142. data/lib/active_record/nested_attributes.rb +548 -0
  143. data/lib/active_record/no_touching.rb +52 -0
  144. data/lib/active_record/null_relation.rb +81 -0
  145. data/lib/active_record/persistence.rb +532 -0
  146. data/lib/active_record/query_cache.rb +56 -0
  147. data/lib/active_record/querying.rb +68 -0
  148. data/lib/active_record/railtie.rb +162 -0
  149. data/lib/active_record/railties/console_sandbox.rb +5 -0
  150. data/lib/active_record/railties/controller_runtime.rb +50 -0
  151. data/lib/active_record/railties/databases.rake +391 -0
  152. data/lib/active_record/railties/jdbcmysql_error.rb +16 -0
  153. data/lib/active_record/readonly_attributes.rb +23 -0
  154. data/lib/active_record/reflection.rb +881 -0
  155. data/lib/active_record/relation.rb +681 -0
  156. data/lib/active_record/relation/batches.rb +138 -0
  157. data/lib/active_record/relation/calculations.rb +403 -0
  158. data/lib/active_record/relation/delegation.rb +140 -0
  159. data/lib/active_record/relation/finder_methods.rb +528 -0
  160. data/lib/active_record/relation/merger.rb +170 -0
  161. data/lib/active_record/relation/predicate_builder.rb +126 -0
  162. data/lib/active_record/relation/predicate_builder/array_handler.rb +47 -0
  163. data/lib/active_record/relation/predicate_builder/relation_handler.rb +13 -0
  164. data/lib/active_record/relation/query_methods.rb +1176 -0
  165. data/lib/active_record/relation/spawn_methods.rb +75 -0
  166. data/lib/active_record/result.rb +131 -0
  167. data/lib/active_record/runtime_registry.rb +22 -0
  168. data/lib/active_record/sanitization.rb +191 -0
  169. data/lib/active_record/schema.rb +64 -0
  170. data/lib/active_record/schema_dumper.rb +251 -0
  171. data/lib/active_record/schema_migration.rb +56 -0
  172. data/lib/active_record/scoping.rb +87 -0
  173. data/lib/active_record/scoping/default.rb +134 -0
  174. data/lib/active_record/scoping/named.rb +164 -0
  175. data/lib/active_record/serialization.rb +22 -0
  176. data/lib/active_record/serializers/xml_serializer.rb +193 -0
  177. data/lib/active_record/statement_cache.rb +111 -0
  178. data/lib/active_record/store.rb +205 -0
  179. data/lib/active_record/tasks/database_tasks.rb +296 -0
  180. data/lib/active_record/tasks/mysql_database_tasks.rb +145 -0
  181. data/lib/active_record/tasks/postgresql_database_tasks.rb +90 -0
  182. data/lib/active_record/tasks/sqlite_database_tasks.rb +55 -0
  183. data/lib/active_record/timestamp.rb +121 -0
  184. data/lib/active_record/transactions.rb +417 -0
  185. data/lib/active_record/translation.rb +22 -0
  186. data/lib/active_record/type.rb +23 -0
  187. data/lib/active_record/type/big_integer.rb +13 -0
  188. data/lib/active_record/type/binary.rb +50 -0
  189. data/lib/active_record/type/boolean.rb +30 -0
  190. data/lib/active_record/type/date.rb +46 -0
  191. data/lib/active_record/type/date_time.rb +43 -0
  192. data/lib/active_record/type/decimal.rb +40 -0
  193. data/lib/active_record/type/decimal_without_scale.rb +11 -0
  194. data/lib/active_record/type/decorator.rb +14 -0
  195. data/lib/active_record/type/float.rb +19 -0
  196. data/lib/active_record/type/hash_lookup_type_map.rb +17 -0
  197. data/lib/active_record/type/integer.rb +55 -0
  198. data/lib/active_record/type/mutable.rb +16 -0
  199. data/lib/active_record/type/numeric.rb +36 -0
  200. data/lib/active_record/type/serialized.rb +56 -0
  201. data/lib/active_record/type/string.rb +36 -0
  202. data/lib/active_record/type/text.rb +11 -0
  203. data/lib/active_record/type/time.rb +26 -0
  204. data/lib/active_record/type/time_value.rb +38 -0
  205. data/lib/active_record/type/type_map.rb +64 -0
  206. data/lib/active_record/type/unsigned_integer.rb +15 -0
  207. data/lib/active_record/type/value.rb +101 -0
  208. data/lib/active_record/validations.rb +90 -0
  209. data/lib/active_record/validations/associated.rb +51 -0
  210. data/lib/active_record/validations/presence.rb +67 -0
  211. data/lib/active_record/validations/uniqueness.rb +229 -0
  212. data/lib/active_record/version.rb +8 -0
  213. data/lib/rails/generators/active_record.rb +17 -0
  214. data/lib/rails/generators/active_record/migration.rb +18 -0
  215. data/lib/rails/generators/active_record/migration/migration_generator.rb +70 -0
  216. data/lib/rails/generators/active_record/migration/templates/create_table_migration.rb +22 -0
  217. data/lib/rails/generators/active_record/migration/templates/migration.rb +45 -0
  218. data/lib/rails/generators/active_record/model/model_generator.rb +52 -0
  219. data/lib/rails/generators/active_record/model/templates/model.rb +10 -0
  220. data/lib/rails/generators/active_record/model/templates/module.rb +7 -0
  221. metadata +309 -0
@@ -0,0 +1,22 @@
1
+ class <%= migration_class_name %> < ActiveRecord::Migration
2
+ def change
3
+ create_table :<%= table_name %> do |t|
4
+ <% attributes.each do |attribute| -%>
5
+ <% if attribute.password_digest? -%>
6
+ t.string :password_digest<%= attribute.inject_options %>
7
+ <% else -%>
8
+ t.<%= attribute.type %> :<%= attribute.name %><%= attribute.inject_options %>
9
+ <% end -%>
10
+ <% end -%>
11
+ <% if options[:timestamps] %>
12
+ t.timestamps null: false
13
+ <% end -%>
14
+ end
15
+ <% attributes_with_index.each do |attribute| -%>
16
+ add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
17
+ <% end -%>
18
+ <% attributes.select(&:reference?).reject(&:polymorphic?).each do |attribute| -%>
19
+ add_foreign_key :<%= table_name %>, :<%= attribute.name.pluralize %>
20
+ <% end -%>
21
+ end
22
+ end
@@ -0,0 +1,45 @@
1
+ class <%= migration_class_name %> < ActiveRecord::Migration
2
+ <%- if migration_action == 'add' -%>
3
+ def change
4
+ <% attributes.each do |attribute| -%>
5
+ <%- if attribute.reference? -%>
6
+ add_reference :<%= table_name %>, :<%= attribute.name %><%= attribute.inject_options %>
7
+ <%- unless attribute.polymorphic? -%>
8
+ add_foreign_key :<%= table_name %>, :<%= attribute.name.pluralize %>
9
+ <%- end -%>
10
+ <%- else -%>
11
+ add_column :<%= table_name %>, :<%= attribute.name %>, :<%= attribute.type %><%= attribute.inject_options %>
12
+ <%- if attribute.has_index? -%>
13
+ add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
14
+ <%- end -%>
15
+ <%- end -%>
16
+ <%- end -%>
17
+ end
18
+ <%- elsif migration_action == 'join' -%>
19
+ def change
20
+ create_join_table :<%= join_tables.first %>, :<%= join_tables.second %> do |t|
21
+ <%- attributes.each do |attribute| -%>
22
+ <%= '# ' unless attribute.has_index? -%>t.index <%= attribute.index_name %><%= attribute.inject_index_options %>
23
+ <%- end -%>
24
+ end
25
+ end
26
+ <%- else -%>
27
+ def change
28
+ <% attributes.each do |attribute| -%>
29
+ <%- if migration_action -%>
30
+ <%- if attribute.reference? -%>
31
+ remove_reference :<%= table_name %>, :<%= attribute.name %><%= attribute.inject_options %>
32
+ <%- unless attribute.polymorphic? -%>
33
+ remove_foreign_key :<%= table_name %>, :<%= attribute.name.pluralize %>
34
+ <%- end -%>
35
+ <%- else -%>
36
+ <%- if attribute.has_index? -%>
37
+ remove_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
38
+ <%- end -%>
39
+ remove_column :<%= table_name %>, :<%= attribute.name %>, :<%= attribute.type %><%= attribute.inject_options %>
40
+ <%- end -%>
41
+ <%- end -%>
42
+ <%- end -%>
43
+ end
44
+ <%- end -%>
45
+ end
@@ -0,0 +1,52 @@
1
+ require 'rails/generators/active_record'
2
+
3
+ module ActiveRecord
4
+ module Generators # :nodoc:
5
+ class ModelGenerator < Base # :nodoc:
6
+ argument :attributes, :type => :array, :default => [], :banner => "field[:type][:index] field[:type][:index]"
7
+
8
+ check_class_collision
9
+
10
+ class_option :migration, :type => :boolean
11
+ class_option :timestamps, :type => :boolean
12
+ class_option :parent, :type => :string, :desc => "The parent class for the generated model"
13
+ class_option :indexes, :type => :boolean, :default => true, :desc => "Add indexes for references and belongs_to columns"
14
+
15
+
16
+ # creates the migration file for the model.
17
+
18
+ def create_migration_file
19
+ return unless options[:migration] && options[:parent].nil?
20
+ attributes.each { |a| a.attr_options.delete(:index) if a.reference? && !a.has_index? } if options[:indexes] == false
21
+ migration_template "../../migration/templates/create_table_migration.rb", "db/migrate/create_#{table_name}.rb"
22
+ end
23
+
24
+ def create_model_file
25
+ template 'model.rb', File.join('app/models', class_path, "#{file_name}.rb")
26
+ end
27
+
28
+ def create_module_file
29
+ return if regular_class_path.empty?
30
+ template 'module.rb', File.join('app/models', "#{class_path.join('/')}.rb") if behavior == :invoke
31
+ end
32
+
33
+ def attributes_with_index
34
+ attributes.select { |a| !a.reference? && a.has_index? }
35
+ end
36
+
37
+ def accessible_attributes
38
+ attributes.reject(&:reference?)
39
+ end
40
+
41
+ hook_for :test_framework
42
+
43
+ protected
44
+
45
+ # Used by the migration template to determine the parent name of the model
46
+ def parent_class_name
47
+ options[:parent] || "ActiveRecord::Base"
48
+ end
49
+
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,10 @@
1
+ <% module_namespacing do -%>
2
+ class <%= class_name %> < <%= parent_class_name.classify %>
3
+ <% attributes.select(&:reference?).each do |attribute| -%>
4
+ belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %><%= ', required: true' if attribute.required? %>
5
+ <% end -%>
6
+ <% if attributes.any?(&:password_digest?) -%>
7
+ has_secure_password
8
+ <% end -%>
9
+ end
10
+ <% end -%>
@@ -0,0 +1,7 @@
1
+ <% module_namespacing do -%>
2
+ module <%= class_path.map(&:camelize).join('::') %>
3
+ def self.table_name_prefix
4
+ '<%= namespaced? ? namespaced_class_path.join('_') : class_path.join('_') %>_'
5
+ end
6
+ end
7
+ <% end -%>
metadata ADDED
@@ -0,0 +1,309 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.2.0
5
+ platform: ruby
6
+ authors:
7
+ - David Heinemeier Hansson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: activemodel
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 4.2.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 4.2.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: arel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '6.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '6.0'
55
+ description: Databases on Rails. Build a persistent domain model by mapping database
56
+ tables to Ruby classes. Strong conventions for associations, validations, aggregations,
57
+ migrations, and testing come baked-in.
58
+ email: david@loudthinking.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files:
62
+ - README.rdoc
63
+ files:
64
+ - CHANGELOG.md
65
+ - MIT-LICENSE
66
+ - README.rdoc
67
+ - examples/performance.rb
68
+ - examples/simple.rb
69
+ - lib/active_record.rb
70
+ - lib/active_record/aggregations.rb
71
+ - lib/active_record/association_relation.rb
72
+ - lib/active_record/associations.rb
73
+ - lib/active_record/associations/alias_tracker.rb
74
+ - lib/active_record/associations/association.rb
75
+ - lib/active_record/associations/association_scope.rb
76
+ - lib/active_record/associations/belongs_to_association.rb
77
+ - lib/active_record/associations/belongs_to_polymorphic_association.rb
78
+ - lib/active_record/associations/builder/association.rb
79
+ - lib/active_record/associations/builder/belongs_to.rb
80
+ - lib/active_record/associations/builder/collection_association.rb
81
+ - lib/active_record/associations/builder/has_and_belongs_to_many.rb
82
+ - lib/active_record/associations/builder/has_many.rb
83
+ - lib/active_record/associations/builder/has_one.rb
84
+ - lib/active_record/associations/builder/singular_association.rb
85
+ - lib/active_record/associations/collection_association.rb
86
+ - lib/active_record/associations/collection_proxy.rb
87
+ - lib/active_record/associations/has_many_association.rb
88
+ - lib/active_record/associations/has_many_through_association.rb
89
+ - lib/active_record/associations/has_one_association.rb
90
+ - lib/active_record/associations/has_one_through_association.rb
91
+ - lib/active_record/associations/join_dependency.rb
92
+ - lib/active_record/associations/join_dependency/join_association.rb
93
+ - lib/active_record/associations/join_dependency/join_base.rb
94
+ - lib/active_record/associations/join_dependency/join_part.rb
95
+ - lib/active_record/associations/preloader.rb
96
+ - lib/active_record/associations/preloader/association.rb
97
+ - lib/active_record/associations/preloader/belongs_to.rb
98
+ - lib/active_record/associations/preloader/collection_association.rb
99
+ - lib/active_record/associations/preloader/has_many.rb
100
+ - lib/active_record/associations/preloader/has_many_through.rb
101
+ - lib/active_record/associations/preloader/has_one.rb
102
+ - lib/active_record/associations/preloader/has_one_through.rb
103
+ - lib/active_record/associations/preloader/singular_association.rb
104
+ - lib/active_record/associations/preloader/through_association.rb
105
+ - lib/active_record/associations/singular_association.rb
106
+ - lib/active_record/associations/through_association.rb
107
+ - lib/active_record/attribute.rb
108
+ - lib/active_record/attribute_assignment.rb
109
+ - lib/active_record/attribute_decorators.rb
110
+ - lib/active_record/attribute_methods.rb
111
+ - lib/active_record/attribute_methods/before_type_cast.rb
112
+ - lib/active_record/attribute_methods/dirty.rb
113
+ - lib/active_record/attribute_methods/primary_key.rb
114
+ - lib/active_record/attribute_methods/query.rb
115
+ - lib/active_record/attribute_methods/read.rb
116
+ - lib/active_record/attribute_methods/serialization.rb
117
+ - lib/active_record/attribute_methods/time_zone_conversion.rb
118
+ - lib/active_record/attribute_methods/write.rb
119
+ - lib/active_record/attribute_set.rb
120
+ - lib/active_record/attribute_set/builder.rb
121
+ - lib/active_record/attributes.rb
122
+ - lib/active_record/autosave_association.rb
123
+ - lib/active_record/base.rb
124
+ - lib/active_record/callbacks.rb
125
+ - lib/active_record/coders/json.rb
126
+ - lib/active_record/coders/yaml_column.rb
127
+ - lib/active_record/connection_adapters/abstract/connection_pool.rb
128
+ - lib/active_record/connection_adapters/abstract/database_limits.rb
129
+ - lib/active_record/connection_adapters/abstract/database_statements.rb
130
+ - lib/active_record/connection_adapters/abstract/query_cache.rb
131
+ - lib/active_record/connection_adapters/abstract/quoting.rb
132
+ - lib/active_record/connection_adapters/abstract/savepoints.rb
133
+ - lib/active_record/connection_adapters/abstract/schema_creation.rb
134
+ - lib/active_record/connection_adapters/abstract/schema_definitions.rb
135
+ - lib/active_record/connection_adapters/abstract/schema_dumper.rb
136
+ - lib/active_record/connection_adapters/abstract/schema_statements.rb
137
+ - lib/active_record/connection_adapters/abstract/transaction.rb
138
+ - lib/active_record/connection_adapters/abstract_adapter.rb
139
+ - lib/active_record/connection_adapters/abstract_mysql_adapter.rb
140
+ - lib/active_record/connection_adapters/column.rb
141
+ - lib/active_record/connection_adapters/connection_specification.rb
142
+ - lib/active_record/connection_adapters/mysql2_adapter.rb
143
+ - lib/active_record/connection_adapters/mysql_adapter.rb
144
+ - lib/active_record/connection_adapters/postgresql/array_parser.rb
145
+ - lib/active_record/connection_adapters/postgresql/column.rb
146
+ - lib/active_record/connection_adapters/postgresql/database_statements.rb
147
+ - lib/active_record/connection_adapters/postgresql/oid.rb
148
+ - lib/active_record/connection_adapters/postgresql/oid/array.rb
149
+ - lib/active_record/connection_adapters/postgresql/oid/bit.rb
150
+ - lib/active_record/connection_adapters/postgresql/oid/bit_varying.rb
151
+ - lib/active_record/connection_adapters/postgresql/oid/bytea.rb
152
+ - lib/active_record/connection_adapters/postgresql/oid/cidr.rb
153
+ - lib/active_record/connection_adapters/postgresql/oid/date.rb
154
+ - lib/active_record/connection_adapters/postgresql/oid/date_time.rb
155
+ - lib/active_record/connection_adapters/postgresql/oid/decimal.rb
156
+ - lib/active_record/connection_adapters/postgresql/oid/enum.rb
157
+ - lib/active_record/connection_adapters/postgresql/oid/float.rb
158
+ - lib/active_record/connection_adapters/postgresql/oid/hstore.rb
159
+ - lib/active_record/connection_adapters/postgresql/oid/inet.rb
160
+ - lib/active_record/connection_adapters/postgresql/oid/infinity.rb
161
+ - lib/active_record/connection_adapters/postgresql/oid/integer.rb
162
+ - lib/active_record/connection_adapters/postgresql/oid/json.rb
163
+ - lib/active_record/connection_adapters/postgresql/oid/jsonb.rb
164
+ - lib/active_record/connection_adapters/postgresql/oid/money.rb
165
+ - lib/active_record/connection_adapters/postgresql/oid/point.rb
166
+ - lib/active_record/connection_adapters/postgresql/oid/range.rb
167
+ - lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb
168
+ - lib/active_record/connection_adapters/postgresql/oid/time.rb
169
+ - lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb
170
+ - lib/active_record/connection_adapters/postgresql/oid/uuid.rb
171
+ - lib/active_record/connection_adapters/postgresql/oid/vector.rb
172
+ - lib/active_record/connection_adapters/postgresql/oid/xml.rb
173
+ - lib/active_record/connection_adapters/postgresql/quoting.rb
174
+ - lib/active_record/connection_adapters/postgresql/referential_integrity.rb
175
+ - lib/active_record/connection_adapters/postgresql/schema_definitions.rb
176
+ - lib/active_record/connection_adapters/postgresql/schema_statements.rb
177
+ - lib/active_record/connection_adapters/postgresql/utils.rb
178
+ - lib/active_record/connection_adapters/postgresql_adapter.rb
179
+ - lib/active_record/connection_adapters/schema_cache.rb
180
+ - lib/active_record/connection_adapters/sqlite3_adapter.rb
181
+ - lib/active_record/connection_adapters/statement_pool.rb
182
+ - lib/active_record/connection_handling.rb
183
+ - lib/active_record/core.rb
184
+ - lib/active_record/counter_cache.rb
185
+ - lib/active_record/dynamic_matchers.rb
186
+ - lib/active_record/enum.rb
187
+ - lib/active_record/errors.rb
188
+ - lib/active_record/explain.rb
189
+ - lib/active_record/explain_registry.rb
190
+ - lib/active_record/explain_subscriber.rb
191
+ - lib/active_record/fixture_set/file.rb
192
+ - lib/active_record/fixtures.rb
193
+ - lib/active_record/gem_version.rb
194
+ - lib/active_record/inheritance.rb
195
+ - lib/active_record/integration.rb
196
+ - lib/active_record/locale/en.yml
197
+ - lib/active_record/locking/optimistic.rb
198
+ - lib/active_record/locking/pessimistic.rb
199
+ - lib/active_record/log_subscriber.rb
200
+ - lib/active_record/migration.rb
201
+ - lib/active_record/migration/command_recorder.rb
202
+ - lib/active_record/migration/join_table.rb
203
+ - lib/active_record/model_schema.rb
204
+ - lib/active_record/nested_attributes.rb
205
+ - lib/active_record/no_touching.rb
206
+ - lib/active_record/null_relation.rb
207
+ - lib/active_record/persistence.rb
208
+ - lib/active_record/query_cache.rb
209
+ - lib/active_record/querying.rb
210
+ - lib/active_record/railtie.rb
211
+ - lib/active_record/railties/console_sandbox.rb
212
+ - lib/active_record/railties/controller_runtime.rb
213
+ - lib/active_record/railties/databases.rake
214
+ - lib/active_record/railties/jdbcmysql_error.rb
215
+ - lib/active_record/readonly_attributes.rb
216
+ - lib/active_record/reflection.rb
217
+ - lib/active_record/relation.rb
218
+ - lib/active_record/relation/batches.rb
219
+ - lib/active_record/relation/calculations.rb
220
+ - lib/active_record/relation/delegation.rb
221
+ - lib/active_record/relation/finder_methods.rb
222
+ - lib/active_record/relation/merger.rb
223
+ - lib/active_record/relation/predicate_builder.rb
224
+ - lib/active_record/relation/predicate_builder/array_handler.rb
225
+ - lib/active_record/relation/predicate_builder/relation_handler.rb
226
+ - lib/active_record/relation/query_methods.rb
227
+ - lib/active_record/relation/spawn_methods.rb
228
+ - lib/active_record/result.rb
229
+ - lib/active_record/runtime_registry.rb
230
+ - lib/active_record/sanitization.rb
231
+ - lib/active_record/schema.rb
232
+ - lib/active_record/schema_dumper.rb
233
+ - lib/active_record/schema_migration.rb
234
+ - lib/active_record/scoping.rb
235
+ - lib/active_record/scoping/default.rb
236
+ - lib/active_record/scoping/named.rb
237
+ - lib/active_record/serialization.rb
238
+ - lib/active_record/serializers/xml_serializer.rb
239
+ - lib/active_record/statement_cache.rb
240
+ - lib/active_record/store.rb
241
+ - lib/active_record/tasks/database_tasks.rb
242
+ - lib/active_record/tasks/mysql_database_tasks.rb
243
+ - lib/active_record/tasks/postgresql_database_tasks.rb
244
+ - lib/active_record/tasks/sqlite_database_tasks.rb
245
+ - lib/active_record/timestamp.rb
246
+ - lib/active_record/transactions.rb
247
+ - lib/active_record/translation.rb
248
+ - lib/active_record/type.rb
249
+ - lib/active_record/type/big_integer.rb
250
+ - lib/active_record/type/binary.rb
251
+ - lib/active_record/type/boolean.rb
252
+ - lib/active_record/type/date.rb
253
+ - lib/active_record/type/date_time.rb
254
+ - lib/active_record/type/decimal.rb
255
+ - lib/active_record/type/decimal_without_scale.rb
256
+ - lib/active_record/type/decorator.rb
257
+ - lib/active_record/type/float.rb
258
+ - lib/active_record/type/hash_lookup_type_map.rb
259
+ - lib/active_record/type/integer.rb
260
+ - lib/active_record/type/mutable.rb
261
+ - lib/active_record/type/numeric.rb
262
+ - lib/active_record/type/serialized.rb
263
+ - lib/active_record/type/string.rb
264
+ - lib/active_record/type/text.rb
265
+ - lib/active_record/type/time.rb
266
+ - lib/active_record/type/time_value.rb
267
+ - lib/active_record/type/type_map.rb
268
+ - lib/active_record/type/unsigned_integer.rb
269
+ - lib/active_record/type/value.rb
270
+ - lib/active_record/validations.rb
271
+ - lib/active_record/validations/associated.rb
272
+ - lib/active_record/validations/presence.rb
273
+ - lib/active_record/validations/uniqueness.rb
274
+ - lib/active_record/version.rb
275
+ - lib/rails/generators/active_record.rb
276
+ - lib/rails/generators/active_record/migration.rb
277
+ - lib/rails/generators/active_record/migration/migration_generator.rb
278
+ - lib/rails/generators/active_record/migration/templates/create_table_migration.rb
279
+ - lib/rails/generators/active_record/migration/templates/migration.rb
280
+ - lib/rails/generators/active_record/model/model_generator.rb
281
+ - lib/rails/generators/active_record/model/templates/model.rb
282
+ - lib/rails/generators/active_record/model/templates/module.rb
283
+ homepage: http://www.rubyonrails.org
284
+ licenses:
285
+ - MIT
286
+ metadata: {}
287
+ post_install_message:
288
+ rdoc_options:
289
+ - "--main"
290
+ - README.rdoc
291
+ require_paths:
292
+ - lib
293
+ required_ruby_version: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ">="
296
+ - !ruby/object:Gem::Version
297
+ version: 1.9.3
298
+ required_rubygems_version: !ruby/object:Gem::Requirement
299
+ requirements:
300
+ - - ">="
301
+ - !ruby/object:Gem::Version
302
+ version: '0'
303
+ requirements: []
304
+ rubyforge_project:
305
+ rubygems_version: 2.2.2
306
+ signing_key:
307
+ specification_version: 4
308
+ summary: Object-relational mapper framework (part of Rails).
309
+ test_files: []