Sha256: 396b5b0b732e5ac595eeb12eef41b6d96b5b4a506af1eeb66fb34ff3eebda5a4

Contents?: true

Size: 340 Bytes

Versions: 10

Compression:

Stored size: 340 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :jabe_comments do |t|
      t.integer :entry_id
      t.string :name
      t.string :email
      t.string :url
      t.text :body

      t.timestamps
    end

    add_index :jabe_comments, :entry_id
  end

  def self.down
    drop_table :jabe_comments
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jabe-0.9.1 db/migrate/20101230010438_create_comments.rb
jabe-0.9.0 db/migrate/20101230010438_create_comments.rb
jabe-0.8.0 db/migrate/20101230010438_create_comments.rb
jabe-0.7.0 db/migrate/20101230010438_create_comments.rb
jabe-0.6.5 db/migrate/20101230010438_create_comments.rb
jabe-0.6.4 db/migrate/20101230010438_create_comments.rb
jabe-0.6.3 db/migrate/20101230010438_create_comments.rb
jabe-0.6.2 db/migrate/20101230010438_create_comments.rb
jabe-0.6.1 db/migrate/20101230010438_create_comments.rb
jabe-0.6.0 db/migrate/20101230010438_create_comments.rb