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
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 |