Sha256: 54895853175fba73f45d462ea0377894a8fa835458b2866989b593e7fee062a0

Contents?: true

Size: 220 Bytes

Versions: 11

Compression:

Stored size: 220 Bytes

Contents

# -*- coding: utf-8 -*-
class RemovePrice < ActiveRecord::Migration
  def self.up
    remove_column "products", "price"
  end

  def self.down
    add_column "products", "price", :integer, :comment => "価格"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
schema_comments-0.2.0 spec/migrations/valid/004_remove_price.rb
schema_comments-0.2.0.alpha5 spec/migrations/valid/004_remove_price.rb
schema_comments-0.2.0.alpha4 spec/migrations/valid/004_remove_price.rb
schema_comments-0.2.0.alpha3 spec/migrations/valid/004_remove_price.rb
schema_comments-0.2.0.alpha2 spec/migrations/valid/004_remove_price.rb
schema_comments-0.2.0.alpha1 spec/migrations/valid/004_remove_price.rb
schema_comments-0.1.4 spec/migrations/valid/004_remove_price.rb
schema_comments-0.1.3 spec/migrations/valid/004_remove_price.rb
schema_comments-0.1.2 spec/migrations/valid/004_remove_price.rb
schema_comments-0.1.1 spec/migrations/valid/004_remove_price.rb
schema_comments-0.1.0 spec/migrations/valid/004_remove_price.rb