Sequenzia/db/migrate/20131201031201_add_html_to_advertisements.php

13 lines
547 B
PHP
Raw Normal View History

2013-12-02 03:26:35 +01:00
<?php
class AddHtmlToAdvertisements extends Rails\ActiveRecord\Migration\Base
{
public function up()
{
$this->addColumn('advertisements', 'html', 'text', ['null' => true]);
$this->changeColumn('advertisements', 'image_url', 'string', ['null' => true]);
$this->changeColumn('advertisements', 'referral_url', 'string', ['null' => true]);
$this->changeColumn('advertisements', 'width', 'integer', ['null' => true]);
$this->changeColumn('advertisements', 'height', 'integer', ['null' => true]);
}
}