Class: CreateTags

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/dircat/cat_on_sqlite/migration/05_create_tags.rb

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/dircat/cat_on_sqlite/migration/05_create_tags.rb', line 10

def self.down
  drop_table :tags
end

.upObject



3
4
5
6
7
8
# File 'lib/dircat/cat_on_sqlite/migration/05_create_tags.rb', line 3

def self.up
  create_table :tags do |t|
    t.string :name, :null => false
    t.integer :category_id
  end
end