HabitatMap/AirCasting

View on GitHub
db/migrate/20120412141653_create_streams.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateStreams < ActiveRecord::Migration[4.2]
  def change
    create_table :streams do |t|
      t.string :sensor_name
      t.string :unit_name
      t.string :measurement_type
      t.string :measurement_short_type
      t.string :unit_symbol

      t.integer :threshold_very_low
      t.integer :threshold_low
      t.integer :threshold_medium
      t.integer :threshold_high
      t.integer :threshold_very_high

      t.references :session
    end
  end
end