Class: EnterpriseMti::Migration::SqlFactory::PostgresSqlFactory

Inherits:
SqlFactory
  • Object
show all
Defined in:
lib/enterprise_mti/migration/sql_factory/postgres_sql_factory.rb

Instance Attribute Summary

Attributes inherited from SqlFactory

#subclass_tables, #superclass_table

Instance Method Summary collapse

Methods inherited from SqlFactory

#add_column, #add_constraint, #alter_column, #alter_table, #defer, #drop_column, #drop_constraint, #not_null, #options_parser, #references, #sql_for_down, #sql_for_up, #subclass_tables_down, #subclass_tables_id_alterations_down, #subclass_tables_id_alterations_up, #subclass_tables_up, #superclass_table_down, #superclass_table_foreign_keys_down, #superclass_table_foreign_keys_up, #superclass_table_up, #superclass_table_xor_constraint_down, #superclass_table_xor_constraint_up, #unique

Instance Method Details

#id_typeObject



10
11
12
# File 'lib/enterprise_mti/migration/sql_factory/postgres_sql_factory.rb', line 10

def id_type
  "BIGINT"
end

#integerObject



6
7
8
# File 'lib/enterprise_mti/migration/sql_factory/postgres_sql_factory.rb', line 6

def integer
  "INTEGER"
end