1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #4900 from lest/patch-1

allow mass-assign version attribute in AR::SchemaMigration
This commit is contained in:
José Valim 2012-02-05 22:53:41 -08:00
commit af7dafff81

View file

@ -4,6 +4,8 @@ require 'active_record/base'
module ActiveRecord module ActiveRecord
class SchemaMigration < ActiveRecord::Base class SchemaMigration < ActiveRecord::Base
attr_accessible :version
def self.table_name def self.table_name
Base.table_name_prefix + 'schema_migrations' + Base.table_name_suffix Base.table_name_prefix + 'schema_migrations' + Base.table_name_suffix
end end