Sha256: e98c337aec6732f6234a4b24bf4db18f895d169988f2d16ecd0388a64fb866f2

Contents?: true

Size: 346 Bytes

Versions: 5

Compression:

Stored size: 346 Bytes

Contents

class CreatePages < ActiveRecord::Migration
  def self.up
    create_table :pages do |t|
      t.string :title
      t.string :title_slug
      t.text :body
      t.text :body_html
      
      t.timestamps
    end
    
    add_index :pages, :title_slug
  end

  def self.down
    remove_index :pages, :title_slug
    drop_table :pages
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hubbub-0.0.11 lib/db/migrate/20091229164415_create_pages.rb
hubbub-0.0.10 lib/db/migrate/20091229164415_create_pages.rb
hubbub-0.0.9 lib/db/migrate/20091229164415_create_pages.rb
hubbub-0.0.8 lib/db/migrate/20091229164415_create_pages.rb
hubbub-0.0.6 lib/db/migrate/20091229164415_create_pages.rb