robertpyke/thesis

View on GitHub
webapp/db/migrate/20130119070102_create_layers.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateLayers < ActiveRecord::Migration
  def change
    create_table :layers do |t|
      t.references :map
      t.string :name

      t.timestamps
    end
    add_index :layers, :map_id
  end
end