Sha256: eec731ebc307afbdc10e74bd4cbdcc3340621585ddfd2c2414c7191771dcd5b2
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
Ponytail.Models.CreateTableCommand = function(tableName, columns) { this.tableName = tableName; this.columns = columns; }; Ponytail.Models.CreateTableCommand.prototype = { toString: function() { return [ "create_table :" + this.tableName + " do |t|", this.columns.map(function(column) { return "t." + column.get("type") + " :" + column.get("name"); }).join("\n").replace(/^/, " ").replace(/\n/g, "\n "), " t.timestamps", "end", ].join("\n"); } };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ponytail-0.3.0 | app/assets/javascripts/ponytail/models/create_table_command.js |