Sha256: 5aba130b9f38c7c8b02c03b12c5aa21947faba24c45c3f35fdfe1f5314cdb4fd

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

class CreateDefaultAreas < ActiveRecord::Migration
  def change
    create_table :default_areas do |t|
      t.references  :organization, null: false
      t.foreign_key :organizations
      t.string      :name, null: false

      t.timestamps
    end

    add_index :default_areas, :id
    add_index :default_areas, :organization_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/20140313235418_create_default_areas.rb