Skip to content

Commit

Permalink
Update create_table_definition, TableDefinition#initialize signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
teeparham committed May 6, 2014
1 parent 1bf1239 commit f47aeaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def indexes(table_name_, name_=nil)
end.compact
end

def create_table_definition(name_, temporary_, options_)
def create_table_definition(name_, temporary_, options_, as_=nil)
# Override to create a spatial table definition (post-4.0.0.beta1)
PostGISAdapter::TableDefinition.new(native_database_types, name_, temporary_, options_, self)
PostGISAdapter::TableDefinition.new(native_database_types, name_, temporary_, options_, as_, self)
end

def create_table(table_name_, options_={}, &block_)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module PostGISAdapter # :nodoc:

class TableDefinition < ConnectionAdapters::PostgreSQLAdapter::TableDefinition # :nodoc:

def initialize(types_, name_, temporary_, options_, base_)
def initialize(types_, name_, temporary_, options_, as_, base_)
@base = base_
@spatial_columns_hash = {}
super(types_, name_, temporary_, options_)
super(types_, name_, temporary_, options_, as_)
end

def column(name_, type_, options_={})
Expand Down

0 comments on commit f47aeaf

Please sign in to comment.