0ab3ef62b8
Added IP columns to dmails, forum_posts, comments.
17 lines
660 B
PHP
Executable File
17 lines
660 B
PHP
Executable File
<?php
|
|
class CreateAdvertisements extends Rails\ActiveRecord\Migration\Base
|
|
{
|
|
public function up()
|
|
{
|
|
$this->createTable('advertisements', function($t) {
|
|
$t->column('image_url', 'string', ['null' => false]);
|
|
$t->column('referral_url', 'string', ['null' => false]);
|
|
$t->column('ad_type', 'string', ['null' => false]);
|
|
$t->column('status', 'string', ['null' => false]);
|
|
$t->column('hit_count', 'integer', ['null' => false, 'default' => 0]);
|
|
$t->column('width', 'integer', ['null' => false]);
|
|
$t->column('height', 'integer', ['null' => false]);
|
|
});
|
|
}
|
|
}
|