Sha256: f6ec1453538d16f5945faba22f9440cc88414ee102b6fe6fcd48f234497e1789

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

# :nodoc:
class CreateHeartbeat < ActiveRecord::Migration[4.2]
  def change
    create_table :heartbeats do |t|
      t.decimal :longitude, precision: 10, scale: 6
      t.decimal :latitude, precision: 10, scale: 6
      t.belongs_to :device
      t.timestamps null: false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
device_tracker-0.5.0 lib/device_tracker/db/migrate/20151027073050_create_heartbeat.rb