diff options
author | schneems <richard.schneeman@gmail.com> | 2015-09-14 13:28:41 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-09-14 13:28:41 -0500 |
commit | 5c5bc8a5af361d43207ca3f1d321e6feba7d7030 (patch) | |
tree | b695768e0b7114d4c80246649d436bc8122d6ead /activerecord/lib | |
parent | c33f51a89437b0b8eeb6288a460175c26b572aa6 (diff) | |
download | rails-5c5bc8a5af361d43207ca3f1d321e6feba7d7030.tar.gz rails-5c5bc8a5af361d43207ca3f1d321e6feba7d7030.tar.bz2 rails-5c5bc8a5af361d43207ca3f1d321e6feba7d7030.zip |
Doc SchemaMigration class.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/schema_migration.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_migration.rb b/activerecord/lib/active_record/schema_migration.rb index cb47bf23f7..b384529e75 100644 --- a/activerecord/lib/active_record/schema_migration.rb +++ b/activerecord/lib/active_record/schema_migration.rb @@ -2,7 +2,11 @@ require 'active_record/scoping/default' require 'active_record/scoping/named' module ActiveRecord - class SchemaMigration < ActiveRecord::Base + # This class is used to create a table that keeps track of which migrations + # have been applied to a given database. When a migration is run, its schema + # number is inserted in to the `SchemaMigration.table_name` so it doesn't need + # to be executed the next time. + class SchemaMigration < ActiveRecord::Base # :nodoc: class << self def primary_key nil |