thingspeak/db/migrate/20110406220648_add_fields_to_pipes.rb

12 lines
241 B
Ruby
Raw Normal View History

class AddFieldsToPipes < ActiveRecord::Migration
def self.up
add_column :pipes, :parse, :string
add_column :pipes, :cache, :integer
end
def self.down
remove_column :pipes, :parse
remove_column :pipes, :cache
end
end