| # == Schema Information |
| # Schema version: 1 |
| # |
| # Table name: difference_analysis_items |
| # |
| # id :integer(11) not null, primary key |
| # difference_analysis_id :integer(10) default(0), not null |
| # page_id :integer(10) |
| # result :string(500) default(), not null |
| # diff :text |
| # diff_html :text |
| # |
| |
| # More information: |
| # * {EPF Wiki Data model}[link:files/doc/DATAMODEL.html] |
| #--###################################################################### |
| # Copyright (c) 2006 LogicaCMG |
| # |
| # All rights reserved. This program and the accompanying materials |
| # are made available under the terms of the Eclipse Public License v1.0 |
| # which accompanies this distribution, and is available at |
| # http://www.eclipse.org/legal/epl-v10.html |
| # |
| # Contributors: |
| # |
| # Onno van der Straaten:: initial implementation |
| #++###################################################################### |
| # {Copyright (c) 2006 LogicaCMG}[link:files/COPYRIGHT.html] |
| |
| class DifferenceAnalysisItem < ActiveRecord::Base |
| |
| belongs_to :difference_analysis |
| belongs_to :page |
| |
| validates_presence_of :difference_analysis_id, :page_id, :result |
| validates_format_of :result, :with => /CHANGED|HTMLCHANGED|NEW|REMOVED|EQUAL/ |
| |
| end |