Sha256: 9a4387257f399e6c4334b6a64ce45115662fe4cd4e6af7333c751d8046690024

Contents?: true

Size: 297 Bytes

Versions: 10

Compression:

Stored size: 297 Bytes

Contents

class AddComments < Sequel::Migration

  def up
    create_table :comments do
      primary_key :id
      foreign_key :entry_id, :table => :entries
      string :name
      string :email
      text :content
      timestamp :updated_on
    end
  end

  def down
    drop_table :comments
  end

end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
dyoder-waves-0.8.0 samples/blog/schema/migrations/002_add_comments.rb
waves-edge-2009.03.10.13.14 samples/blog/schema/migrations/002_add_comments.rb
waves-stable-2009.3.10 samples/blog/schema/migrations/002_add_comments.rb
waves-0.9.3 samples/blog/schema/migrations/002_add_comments.rb
waves-0.9.2 samples/blog/schema/migrations/002_add_comments.rb
waves-0.9.1 samples/blog/schema/migrations/002_add_comments.rb
waves-0.9.0 samples/blog/schema/migrations/002_add_comments.rb
waves-0.8.2 samples/blog/schema/migrations/002_add_comments.rb
waves-0.8.1 samples/blog/schema/migrations/002_add_comments.rb
waves-0.8.0 samples/blog/schema/migrations/002_add_comments.rb