Sha256: 7234edfe1574552befae31129bb96f76bdce17e4b3e6e1903846d11f8bde4de8

Contents?: true

Size: 482 Bytes

Versions: 13

Compression:

Stored size: 482 Bytes

Contents

module Ardm
  module Fixtures
    class Article < Ardm::Record
      self.table_name = "articles"

      property :id,         Serial

      property :title,      String, :length => 255
      property :body,       Text

      property :created_at,   DateTime
      property :updated_at,   DateTime
      property :published_at, DateTime

      property :slug, Slug

      timestamps :at

      before(:valid?) do
        self.slug = self.title
      end
    end # Article
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ardm-0.4.0.ar427 spec/fixtures/article.rb
ardm-0.4.0 spec/fixtures/article.rb
ardm-0.3.2 spec/fixtures/article.rb
ardm-0.3.1 spec/fixtures/article.rb
ardm-0.3.0 spec/fixtures/article.rb
ardm-0.2.7 spec/fixtures/article.rb
ardm-0.2.6 spec/fixtures/article.rb
ardm-0.2.5 spec/fixtures/article.rb
ardm-0.2.4 spec/fixtures/article.rb
ardm-0.2.3 spec/fixtures/article.rb
ardm-0.2.2 spec/fixtures/article.rb
ardm-0.2.1 spec/fixtures/article.rb
ardm-0.2.0 spec/fixtures/article.rb