Sha256: 2d3bd452b3b919bae7766ec601c8db6a34611e45897add554c402e3a7847c5ce
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'rails' require 'active_record' require 'rails/mark_requirements' ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Schema.define(:version => 1) do create_table :models do |t| t.string :name t.string :color end end class Model < ActiveRecord::Base include Rails::MarkRequirements attr_accessible :name, :color validates :name, :presence => true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-mark_requirements-0.0.1 | spec/spec_helper.rb |