Sequenzia/db/migrate/20131201031201_add_html_to_advertisements.php
2013-12-01 21:26:35 -05:00

13 lines
547 B
PHP
Executable File

<?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]);
}
}