Sha256: 57d165708abafca3033e8ca13335936614f4955631fe89524fa88f9a5fde3b1c

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

require 'active_record'

ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
ActiveRecord::Migration.verbose = false

ActiveRecord::Migration.create_table :posts do |t|
  t.string :title
  t.timestamps
end

ActiveRecord::Migration.create_table :comments do |t|
  t.text :body
  t.timestamps
end

class Post < ActiveRecord::Base
  validates :title, presence: true
end

class Comment < ActiveRecord::Base
  validates :body, presence: true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conformista-0.0.1 spec/support/post.rb