blob: 348199d388cc107a1ac242acf6de0eeedcd35987 [file] [log] [blame]
#[macro_use]
extern crate diesel;
struct Bar;
#[derive(Associations)]
#[belongs_to(Bar)]
#[belongs_to(Bar, foreign_key = "bar_id")]
struct Foo {}
#[derive(Associations)]
#[belongs_to(Bar)]
#[belongs_to(Bar, foreign_key = "bar_id")]
struct Baz {
#[column_name = "baz_id"]
bar_id: i32,
}
fn main() {}