I have 2 tables User and Member and there relation is 
In user

> 
> has\_one :member, :class\_name => 'User::Member'
>  Member
>  belongs\_to :user
> 
> 
> 

I am trying to insert data using console and I am using this code

```
 u = User.create(
    :group         => UserGroup.find_by_slug(:members),
    :first_name    => 'abc',
    :last_name     => 'fgh',
    :company_name  => 'xyz',
    :email         => 'test@test.com',
    :password      => '123456',
    :password_confirmation => '123456'
    )   
 m = User::Member.create(
    :user           => u,
    :pricing_plan   => PricingPlan.order('RANDOM()').first,
    :state          => UserState.order('RANDOM()').first,
    :industry       => Industry.order('RANDOM()').first,
    :fy_start_month => 7
    )

```

It is throwing this error 

> 
> syntax error, unexpected tIDENTIFIER, expecting $end
>  ) m = User::Member.create(
> 
> 
> 

I am wondering what is wrong with my syntax.Thanks in advance