Sha256: 20b11c547dda36959a191dc0648b87a91ef1a2eba355830e74322c168b351ec3

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

class CreateAssetScans < ActiveRecord::Migration
  def change
    create_table :asset_scans do |t|
      t.string :name
      t.text :description
      t.date :issue_date
      t.date :expiry_date
      t.date :start_date
      t.attachment :scans
      
      t.timestamps
    end
    add_reference :asset_scans, :asset, :unique => true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pshq_engine-0.1.6 db/migrate/20150427171842_create_asset_scans.rb
pshq_engine-0.1.5 db/migrate/20150427171842_create_asset_scans.rb
pshq_engine-0.0.1 db/migrate/20150427171842_create_asset_scans.rb