Sha256: 16ce1e20e7426ed43b1195e8cff76c9abcd8e711119cc7a8841ee3bc2eba3ed3

Contents?: true

Size: 183 Bytes

Versions: 6

Compression:

Stored size: 183 Bytes

Contents

class RemovePostIdFromAuthor < ActiveRecord::Migration
  def self.up
    remove_column :authors, :post_id
  end

  def self.down
    add_column :authors, :post_id, :integer
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
somehow_has_relation-0.0.7 test/dummy2/db/migrate/20110316154717_remove_post_id_from_author.rb
somehow_has_relation-0.0.6 test/dummy2/db/migrate/20110316154717_remove_post_id_from_author.rb
somehow_has_relation-0.0.4 test/dummy2/db/migrate/20110316154717_remove_post_id_from_author.rb
somehow_has_relation-0.0.3 test/dummy2/db/migrate/20110316154717_remove_post_id_from_author.rb
somehow_has_relation-0.0.2 test/dummy2/db/migrate/20110316154717_remove_post_id_from_author.rb
somehow_has_relation-0.0.1 test/dummy2/db/migrate/20110316154717_remove_post_id_from_author.rb