UserとMemberの2つのテーブルがあり、関係はInuserです。
has_one:member、:class_name =>'User :: Member'メンバーbelongs_to:user
コンソールを使用してデータを挿入しようとしていますが、このコードを使用しています
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
)
このエラーをスローしています
構文エラー、予期しないtIDENTIFIER、$ endを期待)m = User :: Member.create(
構文のどこが悪いのか気になります。よろしくお願いします。