Sha256: 22268e1ffabe81f08728e05ef1b5c9576fac0818a7cde08d247ceaaaae4b2b16

Contents?: true

Size: 185 Bytes

Versions: 7

Compression:

Stored size: 185 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

7 entries across 7 versions & 1 rubygems

Version Path
dynamic_controller-0.0.8 spec/dummy/app/models/city.rb
dynamic_controller-0.0.7 spec/dummy/app/models/city.rb
dynamic_controller-0.0.6 spec/dummy/app/models/city.rb
dynamic_controller-0.0.5 spec/dummy/app/models/city.rb
dynamic_controller-0.0.4 spec/dummy/app/models/city.rb
dynamic_controller-0.0.3 spec/dummy/app/models/city.rb
dynamic_controller-0.0.2 spec/dummy/app/models/city.rb