Displaying 20 results from an estimated 600 matches similar to: "Active Record Migrations -> Table Relations"
2006 Jan 17
1
Rails too Active?
I feel the need to protest about a disturbing trend in the vibrant RoR
community - name dilution.
ActiveRecord is called that precisely because it is that. The name come
from Martin Fowler, and it expresses a class which is a database record,
only _active_ - that is with methods & behaviors (unlike a classical
database record, which is completely passive.) If you look in the
2008 Dec 03
2
little help with error please (new)
attempting to get starquest online to run in linux. I had to add a couple common dlls.
mfc42.dll and msvcp6.dll which got rid of alot of the eorrs after adding thsoe dlls now get this. I donno if theres anythign thing I can try more or if one error means somethign needs coded into wine to implement that feature of the DLL. any help be much appreciated. here is the error
Code:
wine: Unhandled
2008 Mar 17
2
FiberChannel, and EMC tutorial?
Hi all,
Can anyone explain to me, or point me to any docs that explain how the
following numbers map together?
I have multiple LUNS exported to my HBA''s from multiple EMC arrays.
zpool status, and /dev/dsk show device names like:
c0t6006048000038794003753594D333837d0 ONLINE 0 0 0
c0t6006048000038794003753594D333838d0 ONLINE 0 0 0
2006 Jul 13
4
Regenerate DB
Hi again :),
I''m playing with migrations. I''ve created some migrations classes and
with
rake db:migrate the tables are created and altered fine, but then I
dropped
some of the tables and when I run db:migrate command again I don''t get
tables
being re-created.
What am I doing wrong? Is there a way to run db:migration in order to
drop the
tables?
--
Posted via
2006 Mar 28
8
Large Database with lots of tables
Hello all,
I am a rails nuby and I am evaluating using Rails for a new web
application. The application will have a large number of tables (>70)
that will basically mimic a large collection of paper forms that user
would otherwise have to fill out. From what I have read on rails thus
far it seems I would have to create a lot of models and form templates.
Is this common and if so does
2006 Apr 03
2
HABTM migrations
Bad rails day for Matt-
In a migration, for a habtm:
create_table :teams_users do |t|
t.column :team_id, :integer
t.column :user_id, :integer
end
Ok, fine. In a controller (well really a migration script):
@user.teams << Team.find( 3 )
And the SQL pumped at my server is:
INSERT INTO teams_users (`team_id`, `id`, `user_id`) VALUES (3, 3, 34)
Which
2006 Mar 27
3
Migration commands -- create a SQL Server production DB?
Hallo -- could anyone tell me how I use Migrations (which my existing
development schema is implemented with) to create the production
database for deployment?
The target DB is a SQL Server database -- I don''t know if that''s an
issue -- I seem to remember reading that SQL Server is supported now.
Oh, yeah -- SQL Server was *not* my choice!
But what I seem totally unable to
2015 Nov 10
2
Telling virt-manager to re-read ~/.gconf in RHEL 6
Hi all,
I've written a tool that configured Virtual Machine Manager, but I've
got a condition that I am now sure how to handle...
If the user isn't logged in and I configure their
~/.gconf/apps/virt-manager/*, and then they log in, everything works
great. However, if they've already logged in and there was no prior
virt-manager configuration, the custom config is overwritten
2009 Aug 04
3
Accuracy (PR#13867)
Full_Name: Manuel Luethi
Version: 2.9.1
OS: Windows XP
Submission from: (NULL) (129.132.128.136)
Hi
I created the following vectors:
p_1=c(0.2,0.2,0.2,0.2,0.1,0.25,0.4,0.1,0.25,0.4,0.1,0.25,0.4,0.1,0.25,0.4,0.2,0.5,0.8,0.2,0.5,0.8,0.2,0.5,0.8,0.2,0.5,0.8)
p_2=c(0,0,0,0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.4,0.25,0.1,0.4,0.25,0.1,0.4,0.25,0.1,0.4,0.25,0.1)
As these are
2004 Sep 10
2
Push/Pull Model
Hi,
The stream decoder follows a push model, however, I need a pull model
decoder, like, for example, implemented by the Vorbis libs. For this I
simply save the pointer to the audio data in the read callback and acces the
data lateron after the call to FLAC__stream_decoder_process_one_frame
returned.
Is this safe? Can I assume that the internal buffer is not freed, when
2013 Mar 05
1
Generating 1-bit and 8-bit BMP files using R
Hi,
I'm trying to use the data which I generate within R to make images in .bmp format to be lateron printed by a printer.
My first thought was the RImageJ package, but this seems to be discontinued. What I am currently doing is generating a matrix of grey values, which needs to be parsed into the right image format. Is anyone aware of a package or rather "easy" way to generate
2007 Aug 02
1
Foreign Key Use
Hi can any1 guide me ,How can i use foreign Key concept in rails, I m
using Migrations to create tables, Also i want to know diffrent fields
we can use while creating tables. I mean like String,Date time,
timestamp,,,,Plz tell me various fields so that i can Make proper use of
them as per requirement.
Thank u in advance
--
Posted via http://www.ruby-forum.com/.
2010 Aug 05
2
XCP vm install INVALID_SOURCE error
I have just run into the following error when trying to create a debian
lenny vm in XCP 0.5.0 from the command line. This used to work in 0.1.1
as far as I can remember. Here is what I did:
[root@xcp1 ~]#
UUID=`xe vm-install template="Debian Lenny 5.0 (32-bit)"
new-name-label=lenny-test-1`
VIF=`xe vif-create network-uuid=0c94af8b-da04-5417-cdd6-f4c6236aea8b
vm-uuid=$UUID device=0`
xe
2011 Mar 30
1
CDR Mysql adaptive Colum
Hello folks, i installed asterisk 1.8 from repo:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages
And Looked at this article about CDR in mysl.
http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql
I installed asterisk-mysql pacakge from debian repo.
The cdr in mysql is working, but i can not get cdr adaptive colums are not,
i use this in my extension.conf
exten =>
2015 Nov 10
0
Re: Telling virt-manager to re-read ~/.gconf in RHEL 6
[adding virt-tools-list to Cc]
On Tue, Nov 10, 2015 at 01:00:01AM -0500, Digimer wrote:
>Hi all,
>
> I've written a tool that configured Virtual Machine Manager, but I've
>got a condition that I am now sure how to handle...
>
> If the user isn't logged in and I configure their
>~/.gconf/apps/virt-manager/*, and then they log in, everything works
>great.
2011 Jul 19
1
[OT] Apache oddity - appending garbage request does not result in a 404
HI,
I know this is OT and I apologize in advance, but with the wealth of
knowledge on this list I hope that some kind soul will help (off list is
fine).
I run CentOS 5.6 with the usual LAMP stack. One of the virtual sites on
this server failed a PCI Compliance (credit card security stuff)
because, of all things, a URL with a non-existent request after the .php
doesn't return a 404 and
2016 Feb 17
2
Systemd persistent change to service file
Hi All,
I had my database fall over earlier, Initially I thought it was due to a
change in the OS but the postgresql update overwrote my systemd service
file.
How can I create a file for my postgresql service that will not be
overwritten when updates are applied?
Am I correct in thinking it will be something like
vi /etc/systemd/system/postgresql.service.d/postgresql-limit-stack.conf
#with the
2005 Nov 03
2
[OT] CamCommerce
I was really excited today when a colleague gave me a lead on what I had
hoped might become my first production Rails site. Almost as quickly, my
joy began to fade upon speaking to the client. He wants a storefront
that integrates with his existing POS database...a product called
CamCommerce.
A bit of research on this software (I''d not heard of it) suggests that
the database backend that
2007 Jun 26
1
Memory Experimentation: Rule of Thumb = 10-15 Times the Memory
dear R experts:
I am of course no R experts, but use it regularly. I thought I would
share some experimentation with memory use. I run a linux machine
with about 4GB of memory, and R 2.5.0.
upon startup, gc() reports
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 268755 14.4 407500 21.8 350000 18.7
Vcells 139137 1.1 786432 6.0 444750 3.4
This is my baseline. linux
2013 Nov 20
0
[PATCH RFC 1/3] virtio: add notify() callback to virtio_driver
Add an optional notify() callback to virtio_driver. A backend
driver can provide this callback to perform actions for a lost
device.
notify() event values are inherited from virtio_ccw's notify()
callback. We might want to support even more of them lateron.
notify() return values are defined in include/linux/notifier.h.
Signed-off-by: Heinz Graalfs <graalfs at linux.vnet.ibm.com>
---