Sha256: ad10a7633e6be9a380bc936835c2874b0750867bd2ff0767e454c09a251efd58

Contents?: true

Size: 277 Bytes

Versions: 6

Compression:

Stored size: 277 Bytes

Contents

class AddDefaultPositionToAttachment < ActiveRecord::Migration
  def self.up
    change_column :shop_product_attachments, :position, :integer, :default => 1, :allow_null => false
  end

  def self.down
    change_column :shop_product_attachments, :position, :integer
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
radiant-shop-extension-0.11.6 db/migrate/20101007111845_add_default_position_to_attachment.rb
radiant-shop-extension-0.11.5 db/migrate/20101007111845_add_default_position_to_attachment.rb
radiant-shop-extension-0.11.4 db/migrate/20101007111845_add_default_position_to_attachment.rb
radiant-shop-extension-0.11.3 db/migrate/20101007111845_add_default_position_to_attachment.rb
radiant-shop-extension-0.11.1 db/migrate/20101007111845_add_default_position_to_attachment.rb
radiant-shop-extension-0.11.0 db/migrate/20101007111845_add_default_position_to_attachment.rb