diff options
author | Matthew Draper <matthew@trebex.net> | 2015-12-06 06:29:19 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-12-15 17:18:09 +1030 |
commit | c0af95e0abe92ea676bf73959ea84d2fccc8c8fb (patch) | |
tree | 7b682faf8f7543926a3869bfa63a2826de34fcf0 /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 6940dc860c4b25bff2eded370f2af4316de15a30 (diff) | |
download | rails-c0af95e0abe92ea676bf73959ea84d2fccc8c8fb.tar.gz rails-c0af95e0abe92ea676bf73959ea84d2fccc8c8fb.tar.bz2 rails-c0af95e0abe92ea676bf73959ea84d2fccc8c8fb.zip |
Use a deliberately-invalid migration version in all doc examples
If we use a real version, at best that'll be an onerous update required
for each release; at worst, it will encourage users to write new
migrations against an older version than they're using.
The other option would be to leave these bare, without any version
specifier. But as that's just a variant spelling of "4.2", it would seem
to raise the same concerns as above.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index 159cbcb85a..9ec8e0fc26 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -190,7 +190,7 @@ module ActiveRecord # Inside migration files, the +t+ object in {create_table}[rdoc-ref:SchemaStatements#create_table] # is actually of this type: # - # class SomeMigration < ActiveRecord::Migration + # class SomeMigration < ActiveRecord::Migration[0.0] # def up # create_table :foo do |t| # puts t.class # => "ActiveRecord::ConnectionAdapters::TableDefinition" |