thingspeak/db/migrate/20140121232049_create_daily_feeds.rb
2014-02-17 12:05:39 -05:00

16 lines
300 B
Ruby

class CreateDailyFeeds < ActiveRecord::Migration
def change
create_table :daily_feeds do |t|
t.integer :channel_id
t.date :date
t.string :calculation, :limit => 20
t.string :result
t.timestamps
end
add_index :daily_feeds, [:channel_id, :date]
end
end