Sha256: f19798ec8654ae30743d848c5b33e26e89b0f228803a60e5c8d96b93ce9955ef

Contents?: true

Size: 269 Bytes

Versions: 8

Compression:

Stored size: 269 Bytes

Contents

class CreatePostAttributes < ActiveRecord::Migration
  def self.up
    create_table :post_attributes do |t|
      t.references :post
      t.string :name
      t.string :value

      t.timestamps
    end
  end

  def self.down
    drop_table :post_attributes
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
has_eav-1.2.0 test/db/migrate/20101210100309_create_post_attributes.rb
has_eav-1.1.5 test/db/migrate/20101210100309_create_post_attributes.rb
has_eav-1.1.4 test/db/migrate/20101210100309_create_post_attributes.rb
has_eav-1.1.2 test/db/migrate/20101210100309_create_post_attributes.rb
has_eav-1.1.1 test/db/migrate/20101210100309_create_post_attributes.rb
has_eav-1.1.0 test/db/migrate/20101210100309_create_post_attributes.rb
has_eav-1.0.1 test/db/migrate/20101210100309_create_post_attributes.rb
has_eav-1.0.0 test/db/migrate/20101210100309_create_post_attributes.rb