Sha256: 155e02b32a808936ec8e4aa78b5fdec84199939070a3f0925838955b996646f8

Contents?: true

Size: 163 Bytes

Versions: 7

Compression:

Stored size: 163 Bytes

Contents

class AddTypeToPost < ActiveRecord::Migration
  def self.up
    add_column :posts, :type, :string
  end

  def self.down
    remove_column :posts, :type
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
has_eav-1.2.0 test/db/migrate/20101210125857_add_type_to_post.rb
has_eav-1.1.5 test/db/migrate/20101210125857_add_type_to_post.rb
has_eav-1.1.4 test/db/migrate/20101210125857_add_type_to_post.rb
has_eav-1.1.2 test/db/migrate/20101210125857_add_type_to_post.rb
has_eav-1.1.1 test/db/migrate/20101210125857_add_type_to_post.rb
has_eav-1.1.0 test/db/migrate/20101210125857_add_type_to_post.rb
has_eav-1.0.1 test/db/migrate/20101210125857_add_type_to_post.rb