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/20131201031201_add_html_to_advertisements.php

13 lines
547 B
PHP
Raw Permalink 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]);
}
}