thingspeak/db/migrate/20140121232049_create_daily_feeds.rb

16 lines
300 B
Ruby
Raw Normal View History

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