Class: Scheman::Views::Mysql
Defined Under Namespace
Classes: AddField, AddIndex, AlterField, AlterTable, AlterTables, CreateTable, CreateTables, DefaultValue, DropField, DropIndex, DropTable, DropTables, Field, Index, Node, Qualifier, Statements, Transform
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(diff) ⇒ Mysql
constructor
A new instance of Mysql.
- #to_s ⇒ String
Constructor Details
#initialize(diff) ⇒ Mysql
Returns a new instance of Mysql.
9 10 11 |
# File 'lib/scheman/views/mysql.rb', line 9 def initialize(diff) @diff = diff end |
Class Method Details
Instance Method Details
#to_s ⇒ String
14 15 16 17 18 |
# File 'lib/scheman/views/mysql.rb', line 14 def to_s self.class.transform.apply( root: @diff ) end |