Class: CreateTaggings

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

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/dircat/cat_on_sqlite/migration/04_create_taggings.rb', line 10

def self.down
  drop_table :taggings
end

.upObject



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

def self.up
  create_table :taggings, :id => false do |t|
    t.integer :item_id
    t.integer :tag_id
  end
end