Sha256: 361165821ab44733e0460538b5601dcb13f8dde73acbd05d443c3a5f0f31ad1d

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

class Block < ActiveRecord::Base
  set_primary_key :bid

  # Relationships
  

  # Constraints
  #validates_uniqueness_of_multiple_column_constraint ["theme", "module", "delta"]
  validates_numericality_of :status, :weight, :custom, :throttle, :visibility, :cache
  validates_presence_of :module, :delta, :theme, :status, :weight, :region, :custom, :throttle, :visibility, :pages, :title, :cache
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
legacy_data-0.2.1 examples/generated/drupal_mysql/block.rb
legacy_data-0.2.0 examples/generated/drupal_mysql/block.rb
legacy_data-0.1.12 examples/generated/drupal_mysql/block.rb
legacy_data-0.1.11 examples/generated/drupal_mysql/block.rb
legacy_data-0.1.10 examples/generated/drupal_mysql/block.rb