Sha256: 715de1500336d9108f9dc934fe6c1536793c845d0c9ffba9515845b7f114ce66

Contents?: true

Size: 258 Bytes

Versions: 93

Compression:

Stored size: 258 Bytes

Contents

class Book < ActiveRecord::Base

  # the position of the fields block must be preserved
  belongs_to :author

  fields do
    title :string
    price :decimal, :precision=>8, :scale=>2
    code :string, :limit=>4
    comments :text
    timestamps
  end

end

Version data entries

93 entries across 31 versions & 1 rubygems

Version Path
modalfields-1.5.7 test/model_cases/clean/before/book.rb
modalfields-1.5.7 test/model_cases/clean/after/book.rb
modalfields-1.5.7 test/model_cases/dirty/after/book.rb
modalfields-1.5.6 test/model_cases/clean/before/book.rb
modalfields-1.5.6 test/model_cases/dirty/after/book.rb
modalfields-1.5.6 test/model_cases/clean/after/book.rb
modalfields-1.5.5 test/model_cases/clean/after/book.rb
modalfields-1.5.5 test/model_cases/clean/before/book.rb
modalfields-1.5.5 test/model_cases/dirty/after/book.rb
modalfields-1.5.4 test/model_cases/clean/after/book.rb
modalfields-1.5.4 test/model_cases/clean/before/book.rb
modalfields-1.5.4 test/model_cases/dirty/after/book.rb
modalfields-1.5.3 test/model_cases/clean/after/book.rb
modalfields-1.5.3 test/model_cases/clean/before/book.rb
modalfields-1.5.3 test/model_cases/dirty/after/book.rb
modalfields-1.5.2 test/model_cases/clean/after/book.rb
modalfields-1.5.2 test/model_cases/clean/before/book.rb
modalfields-1.5.2 test/model_cases/dirty/after/book.rb
modalfields-1.5.1 test/model_cases/clean/after/book.rb
modalfields-1.5.1 test/model_cases/dirty/after/book.rb