Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Table name FAIL #11

@activestylus

Description

@activestylus

Given the following

class Person
  include DataMapper::Resource

  property :id,   Serial
  property :name, String

  remix n, :addresses
end

module Address
  include DataMapper::Resource

  is :remixable

  property :id,   Serial
  property :city, String
end

When I run

rake db:automigrate,

Then, instead of getting a table called person_addresses,

it's called person_addres, not at all what I expected.

Looks like a pluralization issue? So far its the only model I have with this problem.

Also no matter what I do (on any model), remix n ignores the :as key (by ignore I mean that the table names are not affected, I'm unsure if that's the intended behavior)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions