metaclass: (Default)
metaclass ([personal profile] metaclass) wrote2013-07-30 08:07 pm

Рельсы и констрейнты в БД

http://guides.rubyonrails.org/migrations.html#active-record-and-referential-integrity
"The Active Record way claims that intelligence belongs in your models, not in the database. As such, features such as triggers or foreign key constraints, which push some of that intelligence back into the database, are not heavily used."

В ActiveRecord червь не рекомендует делать констрейнты в БД. Это огорчение, т.к. например, я сломал к хуям (т.е. до невозможности вообще хоть что-либо сделать из UI) хипстерское веб-приложение одним SQL-запросом :)

Есенинское

[identity profile] livejournal.livejournal.com 2013-07-31 06:56 am (UTC)(link)
User [livejournal.com profile] plumqqz referenced to your post from Есенинское (http://plumqqz.livejournal.com/389428.html) saying: [...] рожье В овраг глухой. Пролей как масло Власа луны В мужичьи ясли Моей страны Срок ночи долог... [...]

[identity profile] theiced.livejournal.com 2013-08-01 09:16 pm (UTC)(link)
сожри ещё говна, уёбище