Sha256: b7ab62fc625ab8869c8183a1a4b22ddc3a2af3f7367166628ac0601fb54341b8

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

class CreateChildResources < ActiveRecord::Migration
  def change
    create_table :child_resources do |t|
      t.string :name
      t.string :description
      t.references :ParentResource

      t.timestamps
    end
    add_index :child_resources, :ParentResource_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alberich-0.2.0 test/dummy/db/migrate/20130226151256_create_child_resources.rb~