Sha256: b174f5c6886970b1b80125f4df39dbf9b2553baf2b92a55126b0f112bc172d57

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

class CreateFinishAttachments < ActiveRecord::Migration
  def change
    create_table :finish_attachments do |t|
      t.references  :finish, null: false
      t.foreign_key :finishes
      t.string      :file

      t.timestamps
    end

    add_index :finish_attachments, :id
    add_index :finish_attachments, :finish_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
self_systeem-0.1.0 test/dummy_app/db/migrate/20140313024840_create_finish_attachments.rb