canvas-lms/db/migrate/20131001193112_add_page_vie...

12 lines
213 B
Ruby

class AddPageViewsRemoteIp < ActiveRecord::Migration[4.2]
tag :predeploy
def self.up
add_column :page_views, :remote_ip, :string
end
def self.down
remove_column :page_views, :remote_ip
end
end