From e3b3a25abfc309e228b7b258809b44cd7eb2d792 Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Mon, 6 Feb 2012 09:33:02 +0300 Subject: allow mass-assign version attribute in AR::SchemaMigration --- activerecord/lib/active_record/schema_migration.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord') 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 -- cgit v1.2.3