Sha256: e0c64360923fb5965e910f99a1d27b7d47f6c9073f4b74924d8d8f486e10e5f5

Contents?: true

Size: 773 Bytes

Versions: 1

Compression:

Stored size: 773 Bytes

Contents

BLOG_SCHEMA = {
  users: [
    { name: :id, type: :String },
    { name: :first_name, type: :String },
    { name: :last_name, type: :String },
    { name: :email, type: :String },
  ],
  posts: [
    { name: :id, type: :String },
    { name: :subject, type: :String },
    { name: :body, type: :String },
    { name: :author_id, type: :String },
    { name: :created_at, type: :DateTime },
  ],
  comments: [
    { name: :id, type: :String },
    { name: :body, type: :String },
    { name: :post_id, type: :String },
    { name: :commenter_id, type: :String },
  ],
  categories: [
    { name: :id, type: :String },
    { name: :name, type: :String },
  ],
  categories_to_posts: [
    { name: :post_id, type: :String },
    { name: :category_id, type: :String },
  ],
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sequel_mapper-0.0.3 spec/support/blog_schema.rb