faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 268 seconds]
feepbot has joined #amber
<FromGitter> <bajro17> Can someone tell me is there any example how to make pagination with granite?
<FromGitter> <bajro17> also I cant find is there possible to use :unique
<FromGitter> <Blacksmoke16> pagination should be doable with https://github.com/amberframework/granite/blob/master/docs/querying.md#limit and offset below it
<FromGitter> <Blacksmoke16> but afaik there isnt a built in method to handle it for you
<FromGitter> <Blacksmoke16> like unique column? @bajro17
<FromGitter> <bajro17> @Blacksmoke16 like in laravel when you write migrations you can write username string unique
<FromGitter> <bajro17> when you migrate table this username will be unique field in database
<FromGitter> <Blacksmoke16> how do you do your migrations now?
<FromGitter> <bajro17> User.migrator.drop_and_create
<FromGitter> <bajro17> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5be86189d001b91720444abf]
<FromGitter> <bajro17> it create field in db email varchar 255
<FromGitter> <Blacksmoke16> ah, so using granite's migrator?
<FromGitter> <bajro17> Yes I do
<FromGitter> <Blacksmoke16> its a very basic migrator, extra stuff like that isnt directly supported atm
<FromGitter> <Blacksmoke16> could make an issue for it tho
<FromGitter> <bajro17> I see some stuff like primary isbn : String, auto: :uuid
<FromGitter> <bajro17> but for unique field I cant find
<FromGitter> <bajro17> I will make now issue
<FromGitter> <bajro17> oh I see some stuff is removed in favor to Micrate
<FromGitter> <bajro17> Even I like more granit I will check also Micrate
<FromGitter> <Blacksmoke16> the built in migrator is mainly used for the test suite, so that each model class can be dropped and recreated
<FromGitter> <Blacksmoke16> micrate would deff support it as its just raw sql
<FromGitter> <Blacksmoke16> which in a way i kinda like as it removes some of the magic
<FromGitter> <bajro17> @Blacksmoke16 Thank you so much
<FromGitter> <bajro17> I hate because I was work before with PHP
<FromGitter> <bajro17> I also like more to know everything what work instead magic
_whitelogger has joined #amber
<FromGitter> <RubyRebbe> How do I find paid consulting work as a Crystal or Amber developer?
<FromGitter> <Blacksmoke16> that one guy made a website for crystal jobs, dont think many are on it at tho
<FromGitter> <Blacksmoke16> https://crystaljobs.org/ other than that maybe job boards, might be a bit challenging since its not as big as some other langs
<FromGitter> <RubyRebbe> @Blacksmoke16 , thanks. Did some google searches. Doesn't look like there is a lot of work out there yet.
<FromGitter> <Blacksmoke16> np
_whitelogger has joined #amber