Sha256: 2c2419fdf5d11a33c7c421cf546665309188533629e43ebac11117fc819fa6f8

Contents?: true

Size: 263 Bytes

Versions: 5

Compression:

Stored size: 263 Bytes

Contents

class CreateTags < ActiveRecord::Migration
  def self.up
    create_table :tags do |t|
      t.string :slug
      
      t.timestamps
    end
    
    add_index :tags, :slug
  end

  def self.down
    remove_index :tags, :slug
    
    drop_table :tags
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hubbub-0.0.11 lib/db/migrate/20091227003405_create_tags.rb
hubbub-0.0.10 lib/db/migrate/20091227003405_create_tags.rb
hubbub-0.0.9 lib/db/migrate/20091227003405_create_tags.rb
hubbub-0.0.8 lib/db/migrate/20091227003405_create_tags.rb
hubbub-0.0.6 lib/db/migrate/20091227003405_create_tags.rb