This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/db/migrate/20131231072227_create_inline_images.php
2013-12-31 02:32:12 -05:00

26 lines
749 B
PHP
Executable File

<?php
class CreateInlineImages extends Rails\ActiveRecord\Migration\Base
{
public function up()
{
$this->createTable('inlines', function($t) {
$t->integer('user_id', ['null' => false]);
$t->text('description');
$t->timestamps();
});
$this->createTable('inline_images', function($t) {
$t->integer('inline_id');
$t->string('md5', 32);
$t->string('file_ext', 4);
$t->text('description');
$t->integer('sequence');
$t->integer('width');
$t->integer('height');
$t->integer('sample_width');
$t->integer('sample_height');
$t->timestamps();
});
}
}