Sha256: a72003eea892d498b4ea571bb4132bc99e1530baded55be60afbd40ce4726d95

Contents?: true

Size: 179 Bytes

Versions: 4

Compression:

Stored size: 179 Bytes

Contents

class City < ActiveRecord::Base
  belongs_to :country
  has_many :streets, dependent: :destroy
  attr_accessible :country_id, :name
  validates_presence_of :country_id, :name
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_controller-0.0.12 spec/dummy/app/models/city.rb
dynamic_controller-0.0.11 spec/dummy/app/models/city.rb
dynamic_controller-0.0.10 spec/dummy/app/models/city.rb
dynamic_controller-0.0.9 spec/dummy/app/models/city.rb