thingspeak/db/migrate/20120209003458_create_windows.rb
2014-02-17 12:05:39 -05:00

16 lines
259 B
Ruby

class CreateWindows < ActiveRecord::Migration
def self.up
create_table :windows do |t|
t.integer :channel_id
t.integer :plugin_id
t.integer :position
t.timestamps
end
end
def self.down
drop_table :windows
end
end