Sha256: 337bb14516af63d6be0eeed69c480245a391d6291b2edcff8429a197592430f3

Contents?: true

Size: 178 Bytes

Versions: 6

Compression:

Stored size: 178 Bytes

Contents

class AddAuthorIdToPost < ActiveRecord::Migration
  def self.up
    add_column :posts, :author_id, :integer
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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