Class: MeteoUB::MeasureTable

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/meteoub-gem.rb

Class Method Summary collapse

Class Method Details

.downObject



135
136
137
# File 'lib/meteoub-gem.rb', line 135

def self.down
  drop_table :measures
end

.upObject



128
129
130
131
132
133
134
# File 'lib/meteoub-gem.rb', line 128

def self.up
create_table :measures do |t|
  t.datetime :datetime
  t.float :temperature
  t.timestamps
end
end