diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-02-05 22:53:41 -0800 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-02-05 22:53:41 -0800 |
commit | af7dafff818094a6e02505fe7d6d87add6c2a7e8 (patch) | |
tree | 34dab9effff265345fdb3887b8d4e6da40a3dca2 /activerecord | |
parent | 007c41100b06db53630ce60048eaa625a9e955ee (diff) | |
parent | e3b3a25abfc309e228b7b258809b44cd7eb2d792 (diff) | |
download | rails-af7dafff818094a6e02505fe7d6d87add6c2a7e8.tar.gz rails-af7dafff818094a6e02505fe7d6d87add6c2a7e8.tar.bz2 rails-af7dafff818094a6e02505fe7d6d87add6c2a7e8.zip |
Merge pull request #4900 from lest/patch-1
allow mass-assign version attribute in AR::SchemaMigration
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/schema_migration.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/schema_migration.rb b/activerecord/lib/active_record/schema_migration.rb index 257963c2ce..236ec563d2 100644 --- a/activerecord/lib/active_record/schema_migration.rb +++ b/activerecord/lib/active_record/schema_migration.rb @@ -4,6 +4,8 @@ require 'active_record/base' module ActiveRecord class SchemaMigration < ActiveRecord::Base + attr_accessible :version + def self.table_name Base.table_name_prefix + 'schema_migrations' + Base.table_name_suffix end |