postgres do
table "plans"
repo MyApp.Repo
migration_defaults features: "[]"
custom_indexes do
index [:id, :organization_id],
name: "unique_org_plan",
unique: true,
message: "a plan can only be tied to one organization"
end
end
postgres do
table "plans"
repo MyApp.Repo
migration_defaults features: "[]"
custom_indexes do
index [:id, :organization_id],
name: "unique_org_plan",
unique: true,
message: "a plan can only be tied to one organization"
end
end