Skip Migration for a Resource

Question: How do I skip generation of migration for a particular resource? Context, I have an existing ongoing project that I want to port over to STAPLE. The project 1. has existing tables and data in production. The migrations are separately maintained using LIquibase 2. has views that combines data from multiple tables from multiple schemas. I'd like to define the tables and views as Ash Resources. Firstly, can do? I'm assuming that i can just put the name of the view into the table element in postgres. Secondly, hence, how do I skip migration generation for these resources entirely? Though I would like to generate new tables Third question, do I use
postgres do
table "myschema.tickets"
end
postgres do
table "myschema.tickets"
end
OR
postgres do
table "tickets"
schema "myschema"
end
postgres do
table "tickets"
schema "myschema"
end
I'm gonna give the above a go anyways. Just wanna ask for pointers. And I couldn't find where I can skip migration of entire resource. Cheers!
2 Replies
ZachDaniel
ZachDaniel2y ago
postgres do
table "tickets"
schema "myschema"
migrate? false
end
postgres do
table "tickets"
schema "myschema"
migrate? false
end
and yeah its totally fine to use tables defined in some other way and/or views with Ash
Terry Lee
Terry LeeOP2y ago
Great! Thank you!

Did you find this page helpful?