By reading this question and answer
https://groups.google.com/forum/#!searchin/sequel-talk/schema$20postgres%7Csort:date/sequel-talk/mBX1nKWBSYE/HaHrYH2DAgAJ
I figured out I could do
DB.create_table(Sequel[:some_schma][:some_table])
Is this the "official" way of doing this and is it documented somewhere?
I'm willing to make a PR to document this.
On Thursday, October 18, 2018 at 12:08:29 PM UTC+3, Alexander Popov wrote:
>
> Hello. I'm new to Sequel and just started exploring it. I was able to
> create a new schema:
>
> DB = Sequel.postgres('some_db')
> DB.create_schema(:some_schema, if_not_exists: true)
>
> I verified, that the schema was created. However, I can't find a way to
> create a table in the newly created schema. I couldn't find documentation
> explaining this and I tried, but couldn't succeed, with:
>
>
> DB.create_table(:some_table, schema: 'some_schema')
> DB.create_table('some_schema.some_table')
> DB.create_table(:some_schema__some_table)
>
> Every time, it creates the table in the public schema. What is the way to
> create the table in the some_schema schema?
>
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.