diff options
3 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index dd1be694e4..d6d33e9d17 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -50,11 +50,11 @@ module ActiveRecord # that have been defined. attr_accessor :columns, :indexes - def initialize(base) + def initialize(types) @columns = [] @columns_hash = {} @indexes = {} - @base = base + @native = types end # Appends a primary key definition to the table definition. @@ -281,7 +281,7 @@ module ActiveRecord end def native - @base.native_database_types + @native end end diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 4b5adb1d59..b291c47742 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -830,7 +830,7 @@ module ActiveRecord private def create_table_definition - TableDefinition.new(self) + TableDefinition.new native_database_types end def update_table_definition(table_name, base) diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 48a3d5439f..ef1bbed04b 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -901,7 +901,7 @@ module ActiveRecord end def create_table_definition - TableDefinition.new(self) + TableDefinition.new native_database_types end def update_table_definition(table_name, base) |