address FIXME by bringing users schema into scope
@@ -102,6 +102,7 @@ pub trait ArrayExpressionMethods<ST>: Expression<SqlType = Array<ST>> + Sized {
/// # #[macro_use] extern crate diesel;
/// # #[macro_use] extern crate diesel_codegen;
/// # include!("../../doctest_setup.rs");
+ /// # use schema::users;
/// #
/// # table! {
/// # posts {
@@ -110,14 +111,6 @@ pub trait ArrayExpressionMethods<ST>: Expression<SqlType = Array<ST>> + Sized {
/// # }
/// # }
/// #
- /// # // FIXME: We shouldn't need to define a users table here
- /// # table! {
- /// # users {
- /// # id -> Integer,
- /// # name -> VarChar,
- /// # }
- /// # }
- /// #
/// # #[derive(Insertable)]
/// # #[table_name="posts"]
/// # struct NewPost<'a> { tags: Vec<&'a str> }
@@ -162,6 +155,7 @@ pub trait ArrayExpressionMethods<ST>: Expression<SqlType = Array<ST>> + Sized {
/// # #[macro_use] extern crate diesel;
/// # #[macro_use] extern crate diesel_codegen;
/// # include!("../../doctest_setup.rs");
+ /// # use schema::users;
/// #
/// # table! {
/// # posts {
@@ -170,14 +164,6 @@ pub trait ArrayExpressionMethods<ST>: Expression<SqlType = Array<ST>> + Sized {
/// # }
/// # }
/// #
- /// # // FIXME: We shouldn't need to define a users table here
- /// # table! {
- /// # users {
- /// # id -> Integer,
- /// # name -> VarChar,
- /// # }
- /// # }
- /// #
/// # #[derive(Insertable)]
/// # #[table_name="posts"]
/// # struct NewPost<'a> { tags: Vec<&'a str> }
@@ -218,6 +204,7 @@ pub trait ArrayExpressionMethods<ST>: Expression<SqlType = Array<ST>> + Sized {
/// # #[macro_use] extern crate diesel;
/// # #[macro_use] extern crate diesel_codegen;
/// # include!("../../doctest_setup.rs");
+ /// # use schema::users;
/// #
/// # table! {
/// # posts {
@@ -226,14 +213,6 @@ pub trait ArrayExpressionMethods<ST>: Expression<SqlType = Array<ST>> + Sized {
/// # }
/// # }
/// #
- /// # // FIXME: We shouldn't need to define a users table here
- /// # table! {
- /// # users {
- /// # id -> Integer,
- /// # name -> VarChar,
- /// # }
- /// # }
- /// #
/// # #[derive(Insertable)]
/// # #[table_name="posts"]
/// # struct NewPost<'a> { tags: Vec<&'a str> }
