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:
commit
af7dafff81
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue