Class: Scheman::Views::Mysql::CreateTable

Inherits:
Node
  • Object
show all
Defined in:
lib/scheman/views/mysql.rb

Instance Method Summary collapse

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Scheman::Views::Mysql::Node

Instance Method Details

#to_sObject



234
235
236
237
238
239
# File 'lib/scheman/views/mysql.rb', line 234

def to_s
  str = ""
  str << "CREATE TABLE `#{table_name}` (\n"
  str << definitions.join(",\n").indent(2) + "\n"
  str << ");"
end