Sha256: b6069201076fd4397a2316b08cc14b7c7437af2dc589c7e5498295d8c19ef4be

Contents?: true

Size: 158 Bytes

Versions: 8

Compression:

Stored size: 158 Bytes

Contents

class Category < ActiveRecord::Base
  attr_accessible :name unless Rails::VERSION::MAJOR > 3
  has_many :space_ships
  validates :name, :presence => true
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dbview_cti-0.2.3 spec/dummy-rails-3/app/models/category.rb
dbview_cti-0.2.2 spec/dummy-rails-3/app/models/category.rb
dbview_cti-0.2.1 spec/dummy-rails-3/app/models/category.rb
dbview_cti-0.2.0 spec/dummy-rails-3/app/models/category.rb
dbview_cti-0.1.5 spec/dummy-rails-3/app/models/category.rb
dbview_cti-0.1.4 spec/dummy-rails-3/app/models/category.rb
dbview_cti-0.1.3 spec/dummy-rails-3/app/models/category.rb
dbview_cti-0.1.2 spec/dummy-rails-3/app/models/category.rb