Class: MeteoUB::MeasureTable

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

Class Method Summary collapse

Class Method Details

.downObject



116
117
118
# File 'lib/meteoub-gem.rb', line 116

def self.down
  drop_table :measures
end

.upObject



109
110
111
112
113
114
115
# File 'lib/meteoub-gem.rb', line 109

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