« Back to channel list

#RubyOnRails - 03 March 2019

« Back 1 day Forward 1 day »
[00:14:11] gambl0r3: has joined #RubyOnRails
[00:22:50] mangold: has joined #RubyOnRails
[00:35:14] cnsvc_: has joined #RubyOnRails
[00:58:32] uplime: is there an article or document that details what should go into a git repo and what shouldn't, for a project generated with `rails g projectname`?
[00:58:59] uplime: erm, `rails new projectname` i mean
[01:32:21] tdy: has joined #RubyOnRails
[01:41:45] duderonomy: has joined #RubyOnRails
[01:45:46] lupine: has joined #RubyOnRails
[01:50:42] kvda: has joined #RubyOnRails
[02:12:19] apparition: has joined #RubyOnRails
[02:30:34] Technodrome: has joined #RubyOnRails
[02:46:34] gambl0r3: has joined #RubyOnRails
[02:53:59] blackmesa1: has joined #RubyOnRails
[03:04:22] bambanx: has joined #RubyOnRails
[03:05:26] bambanx: has joined #RubyOnRails
[03:07:33] bambanx: has joined #RubyOnRails
[03:24:47] cschneid: has joined #RubyOnRails
[03:56:16] jaddison: has joined #RubyOnRails
[04:00:17] ariedler: has joined #RubyOnRails
[04:08:19] mangold: has joined #RubyOnRails
[04:09:35] braincrash: has joined #RubyOnRails
[04:39:30] apparition: has joined #RubyOnRails
[04:43:22] armyriad: has joined #RubyOnRails
[05:04:46] KeyJoo: has joined #RubyOnRails
[05:11:05] segy: has joined #RubyOnRails
[05:11:09] jaddison: has joined #RubyOnRails
[05:12:06] jaddison: has joined #RubyOnRails
[05:12:50] jaddison: has joined #RubyOnRails
[05:13:39] jaddison: has joined #RubyOnRails
[05:14:24] jaddison: has joined #RubyOnRails
[05:15:10] jaddison: has joined #RubyOnRails
[05:26:16] Saukk: has joined #RubyOnRails
[05:40:24] v01d4lph4: has joined #RubyOnRails
[06:25:54] cschneid: has joined #RubyOnRails
[06:37:06] mangold: has joined #RubyOnRails
[06:43:58] kvda: has joined #RubyOnRails
[06:58:35] orbyt_: has joined #RubyOnRails
[07:44:48] reber: has joined #RubyOnRails
[07:53:19] ravenousmoose: has joined #RubyOnRails
[08:05:59] sameerynho: has joined #RubyOnRails
[08:18:56] agent_white: has joined #RubyOnRails
[08:40:13] apparition: has joined #RubyOnRails
[08:55:21] cschneid: has joined #RubyOnRails
[09:24:18] blackmesa1: has joined #RubyOnRails
[09:32:40] blackmesa1: has joined #RubyOnRails
[09:37:11] Dbugger: has joined #RubyOnRails
[09:40:37] wethu: has joined #RubyOnRails
[09:43:40] cristof: has joined #RubyOnRails
[09:48:02] blackmesa: has joined #RubyOnRails
[10:09:25] cschneid: has joined #RubyOnRails
[10:13:01] conta: has joined #RubyOnRails
[10:19:06] blackmesa: has joined #RubyOnRails
[10:21:27] szulak_: has joined #RubyOnRails
[10:39:27] cristof: has joined #RubyOnRails
[10:42:30] mangold: has joined #RubyOnRails
[11:23:14] mangold: has joined #RubyOnRails
[11:48:07] lankanmon: has joined #RubyOnRails
[11:55:30] ariedler: has joined #RubyOnRails
[12:07:45] Fernando-Basso: has joined #RubyOnRails
[12:18:49] davidh38: has joined #RubyOnRails
[12:23:56] sevenseacat: has joined #RubyOnRails
[12:30:39] Ergo: has joined #RubyOnRails
[12:38:54] cschneid: has joined #RubyOnRails
[12:41:41] wethu: has joined #RubyOnRails
[12:46:35] crankharder: has joined #RubyOnRails
[12:52:35] egray: has joined #RubyOnRails
[12:55:17] davidh38: has joined #RubyOnRails
[12:59:40] cristof: has joined #RubyOnRails
[13:00:28] cristof: has joined #RubyOnRails
[13:05:22] szulak_: has joined #RubyOnRails
[13:16:14] Aherin: has joined #RubyOnRails
[13:23:52] uks: has joined #RubyOnRails
[13:52:36] Technodrome: has joined #RubyOnRails
[13:57:12] crankharder: has joined #RubyOnRails
[14:17:57] cristof: has joined #RubyOnRails
[14:33:59] crankharder: has joined #RubyOnRails
[14:46:30] davidh38: has joined #RubyOnRails
[15:07:15] crankharder: has joined #RubyOnRails
[15:10:15] cschneid: has joined #RubyOnRails
[15:24:51] conta: has joined #RubyOnRails
[15:56:08] pLaTo0n: has joined #RubyOnRails
[15:57:30] Sylario: has joined #RubyOnRails
[16:00:47] cschneid: has joined #RubyOnRails
[16:16:12] sariyar: has joined #RubyOnRails
[16:39:40] DTZUZO: has joined #RubyOnRails
[16:55:05] Technodrome: has joined #RubyOnRails
[16:56:56] orbyt_: has joined #RubyOnRails
[17:00:34] ravenousmoose: has joined #RubyOnRails
[17:05:31] tdy: has joined #RubyOnRails
[17:14:28] Cavallari: has joined #RubyOnRails
[17:41:27] davidfetter: has joined #RubyOnRails
[17:42:23] davidfetter: is there a standard way to run over a model and spit out the DDL it would produce?
[17:42:53] davidfetter: e.g. send it to stdout, or such?
[17:48:42] ravenousmoose: has joined #RubyOnRails
[17:48:50] cschneid: has joined #RubyOnRails
[17:52:19] gambl0r3: has joined #RubyOnRails
[18:23:29] Dbugger: has joined #RubyOnRails
[18:29:40] Sylario: @davidfetter Model do not contain all of the DDL
[18:30:17] Sylario: If by DDL you are talking about the migrations, all that information is in the schema and rails is able to rebuild a database from it
[18:34:23] crankharder: has joined #RubyOnRails
[18:36:05] cnsvc_: has joined #RubyOnRails
[18:50:27] jaddison: has joined #RubyOnRails
[18:52:22] jaddison: has joined #RubyOnRails
[18:53:08] jaddison: has joined #RubyOnRails
[18:53:46] jaddison: has joined #RubyOnRails
[18:55:20] jaddison: has joined #RubyOnRails
[18:56:11] jaddison: has joined #RubyOnRails
[19:08:38] aidanh010: has joined #RubyOnRails
[19:09:17] orbyt_: has joined #RubyOnRails
[19:20:39] cschneid: has joined #RubyOnRails
[19:27:23] tdy: has joined #RubyOnRails
[19:28:32] conta: has joined #RubyOnRails
[19:37:12] aidanh010: has joined #RubyOnRails
[19:43:14] davidfetter: sylario, DDL == "things with CREATE, ALTER, or DROP" in them.
[19:44:04] davidfetter: sylario, is there a way to flip the defaults so foreign keys in the model turn into actual foreign keys in the DB?
[19:44:34] Sylario: Relations use foreign keys
[19:44:36] davidfetter: what I'm picturing is that "has_one" would turn into a foreign key constraint and a UNIQUE constraint
[19:44:55] davidfetter: maybe I'm dealing with a too-old version of rails. 1.8something
[19:45:12] Sylario: That's when you create the migration, you specify it's a relation and it create foreign keys
[19:45:17] Sylario: that's old
[19:45:47] Sylario: Or is 1.8 the ruby version?
[19:45:49] davidfetter: As with many situations, it is the result of choices, each of which could well have been rational in context, and probably was
[19:46:09] Sylario: Check that 1.8 is not the version of ruby
[19:46:13] davidfetter: I *think* it's the Rails version. I don't have access to that code right this minute, but where would I look?
[19:46:16] Sylario: you may be in rails 3
[19:46:24] Sylario: in the gemfile
[19:46:54] davidfetter: The stuff here is no older that 2013 (company founded that year)
[19:47:15] Sylario: It should be 3 then
[19:47:21] Sylario: And you should upgrade
[19:47:33] davidfetter: That's on the backlog :/
[19:47:56] davidfetter: If there are good resources as to how to upgrade large Rails environments, I'd love to look them over
[19:48:03] Sylario: And that's an often overlooked advantage of tests, it's great to migrate
[19:48:25] Sylario: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html
[19:48:30] Sylario: The rails guides are great
[19:49:17] davidfetter: I've been there a week, and I'm the DBA, not an application developer, so any suggestions I have in this arena are going to be delicate to negotiate
[19:50:26] davidfetter: Is it standard in modern version of Rails to turn "has_*" into actual foreign key constraints?
[19:51:18] davidfetter: ACTION is trying to do the simplest and most thorough job he can of inferring the FK relationships, as they are not yet enforced by the DB, which is to say they're not enforced.
[19:56:46] davidfetter: in Rails land, would it be reasonable to infer, as a first approximation, that foo_id refers to the id column of the foo table?
[20:03:59] ariedler: has joined #RubyOnRails
[20:09:41] Sylario: something_id, is per convention, a foreign key
[20:10:46] Sylario: Since rails 3 or 4 migrations, that are the way to create new table on an ongoing project, have the notions of relation, that will use the foreign key notion of the DB and also index it
[20:10:59] Sylario: davidfetter: very very important, do not edit schema.rb
[20:11:43] Sylario: schema.rb is the product of migrations, and what an app will use to create the DB structure
[20:13:23] Sylario: at the very least, has_many :bars in class foo.rb implies that the table bars has a foo_id
[20:13:52] cschneid: has joined #RubyOnRails
[20:21:02] agent_white: has joined #RubyOnRails
[20:28:25] bswinnerton: has joined #RubyOnRails
[20:28:27] bswinnerton: How are folks precompiling assets in Docker with nginx? Sharing volumes? Some sort of entrypoint script?
[20:29:09] dviola: has joined #RubyOnRails
[20:31:11] reber: has joined #RubyOnRails
[20:37:57] DoctorMonocular: has joined #RubyOnRails
[20:41:48] davidh38: has joined #RubyOnRails
[20:49:13] ur5us: has joined #RubyOnRails
[20:57:13] Radar: GOOD MORNING
[21:04:16] crankharder: has joined #RubyOnRails
[21:16:50] davidh38: has joined #RubyOnRails
[21:24:21] crankharder: has joined #RubyOnRails
[21:33:28] bswinnerton: has left #RubyOnRails: ("The Lounge - https://thelounge.chat")
[21:40:00] orbyt_: has joined #RubyOnRails
[21:56:20] ellcs: has joined #RubyOnRails
[22:09:39] jaddison: has joined #RubyOnRails
[22:11:17] cschneid: has joined #RubyOnRails
[22:14:24] mojtaba: has joined #RubyOnRails
[22:15:06] ellcs: has joined #RubyOnRails
[22:15:59] wethu: has joined #RubyOnRails
[22:16:18] mojtaba: Hello, I am new to Rails, and I want to use Heroku. I have lots of pictures to (Catalogues of the products). I just wanted to know that can I use a shared host (like Bluehost; which I have an account there), to place the pictures there? (May be using the second db, or just on the file system.)
[22:30:49] kvda: has joined #RubyOnRails
[22:42:54] Technodrome: has joined #RubyOnRails
[22:47:59] bambanx: has joined #RubyOnRails
[22:49:09] bambanx: has joined #RubyOnRails
[22:50:36] bambanx: has joined #RubyOnRails
[22:53:16] orbyt_: has joined #RubyOnRails
[23:07:25] tdy: has joined #RubyOnRails
[23:14:20] quazimodo: has joined #RubyOnRails
[23:14:22] quazimod1: has joined #RubyOnRails
[23:14:25] quazimod2: has joined #RubyOnRails
[23:15:10] quazimodo: has joined #RubyOnRails
[23:57:07] egray: has joined #RubyOnRails