Class: Scheman::Views::Mysql::CreateTable
- Defined in:
- lib/scheman/views/mysql.rb
Instance Method Summary collapse
Methods inherited from Node
Constructor Details
This class inherits a constructor from Scheman::Views::Mysql::Node
Instance Method Details
#to_s ⇒ Object
230 231 232 233 234 235 |
# File 'lib/scheman/views/mysql.rb', line 230 def to_s str = "" str << "CREATE TABLE `#{table_name}` (\n" str << definitions.join(",\n").indent(2) + "\n" str << ");" end |