Sha256: 0932e4a1978b06b1df8f7c8adb972c736fdf45a5f3a8d58c20de0dafa5ed7f1c
Contents?: true
Size: 346 Bytes
Versions: 5
Compression:
Stored size: 346 Bytes
Contents
class Article < ActiveRecord::Base establish_connection(:test) end class Comment < ActiveRecord::Base establish_connection(:test) validates_numericality_of :article_id, greater_than: 0 end class Like < ActiveRecord::Base establish_connection(:test) end class ShardArticle < ActiveRecord::Base establish_connection(:shard_test) end
Version data entries
5 entries across 5 versions & 1 rubygems