@titanium/turbo
Version:
<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>
32 lines (29 loc) • 670 B
JavaScript
var info = [];
for (var i = 0; i < 500; i++) {
if (i % 7 === 0) {
info.push({
title: 'This is the title',
subtitle: 'This is the slightly more verbose subtitle',
image: i % 2 ? '/appc.png' : '/alloy.png'
});
} else if (i % 2) {
info.push({
title: 'This is the title with subtitle',
subtitle: 'This is the slightly more verbose subtitle'
});
} else {
info.push({
title: 'This is the lonely title'
});
}
}
migration.up = function(migrator) {
for (var i = 0; i < info.length; i++) {
migrator.insertRow(info[i]);
}
};
migration.down = function(migrator) {
for (var i = 0; i < info.length; i++) {
migrator.deleteRow(info[i]);
}
};