Sha256: fff61e484f11709da77b9ed7056088505720cce6fc6312bc83d35c8d0fa554fd

Contents?: true

Size: 609 Bytes

Versions: 151

Compression:

Stored size: 609 Bytes

Contents

class AddAttachmentsInventoryToInventoryFile < ActiveRecord::Migration
  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

151 entries across 150 versions & 5 rubygems

Version Path
enju_biblio-0.2.5 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.4 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.3 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.2 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.1 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_inventory-0.2.0 db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.0 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.0.beta.4 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_inventory-0.2.0.beta.3 db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.0.beta.3 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_inventory-0.2.0.beta.2 db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.0.beta.2 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_inventory-0.2.0.beta.1 db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.2.0.beta.1 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.1.3 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_inventory-0.1.12 db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.1.2 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb
enju_biblio-0.1.1 spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb