Skip to content

Cake Migrations support References of tables Fathers and Childs #318

@AndreLZGava

Description

@AndreLZGava

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Bake plugin version: Cake migrations should support table references like Rails, this way would be very usefull. If this exists please document.

Expected Behavior

When developer executs this command

cake bake migration CreateTableUser name:text category_id:references

This would create a migration, on execute it a table User user would be created with it's fields and a field category_id referencing category as foreign key.

Actual Behavior

This feature probably don't exist if it exists this isn't documented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions