lib/partitioned/partitioned_base/sql_adapter.rb in partitioned-1.0.1 vs lib/partitioned/partitioned_base/sql_adapter.rb in partitioned-1.1.0
- old
+ new
@@ -125,9 +125,16 @@
def partition_table_name(*partition_key_values)
return configurator.table_name(*partition_key_values)
end
#
+ # A reasonable alias for the partition table
+ #
+ def partition_table_alias_name(*partition_key_values)
+ return configurator.table_alias_name(*partition_key_values)
+ end
+
+ #
# Create a single child table.
#
def create_partition_table(*partition_key_values)
create_table(configurator.table_name(*partition_key_values), {
:id => false,