Sha256: 0d0381d5591267a3902a3918c4a7478d8e1dfd16e176d8f440d786acdb747939

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

class AddAttachmentsInventoryToInventoryFile < ActiveRecord::Migration[5.2]
  def self.up
    add_column :inventory_files, :inventory_file_name, :string
    add_column :inventory_files, :inventory_content_type, :string
    add_column :inventory_files, :inventory_file_size, :integer
    add_column :inventory_files, :inventory_updated_at, :datetime
  end

  def self.down
    remove_column :inventory_files, :inventory_file_name
    remove_column :inventory_files, :inventory_content_type
    remove_column :inventory_files, :inventory_file_size
    remove_column :inventory_files, :inventory_updated_at
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_inventory-0.4.0.rc.1 db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb