Sha256: dd0510969962c42eaf387da6994904f2f78b1d87dbc7c471a22bdbfa7c26f088

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

class SampleBase < Witness::Base

  action :generate, :receive

  column :first_name
  column :last_name, :type => :string, :name => "Person last name"
  column :age, :type => :integer
  column :base_type, :type => :symbol
  column :data, :type => nil

  validates_presence_of :first_name, :age
  validates_presence_of :last_name, :on => :generate
  validates_presence_of :base_type, :on => :receive

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
witness-2.1.2 spec/support/sample_base.rb
witness-2.1.1 spec/support/sample_base.rb
witness-2.1.0 spec/support/sample_base.rb
witness-2.0.0 spec/support/sample_base.rb