similar to: Problem with dropping the column_id column...

Displaying 20 results from an estimated 300 matches similar to: "Problem with dropping the column_id column..."

2006 Apr 04
1
Parsing a SQL file directly into activerecord::execute method
Hello folks, I''m trying to do something like: 1. db = ActiveRecord::Base.establish_connection(:adapter => "mysql", :database => "app_development", :username => "root") 2. Cmd = File.read(''commands.sql'') <--- Command.sql contains multiple valid SQL statement. I''ve tested this directly by piping it into MySQL from the
2006 Apr 04
0
Parsing a SQL file directly into activerecord::executemethod - Not a vamp I swear
In an effort to not be a vamp. (Thanks Amy) Here is the error message = I''m getting. Mysql::Error: #42000You have an error in your SQL syntax; check the = manual that corresponds to your MySQL server version for the right = syntax to use near ''=A1=C9=A8[=A9=B4#Globals = (ActiveRecord::StatementInvalid) SET @rightnow =3D current_timestamp; It appears that Active Record is
2010 Feb 23
1
Rails on Snow Leopard
In particular, if you''re putting Rails on Snow Leopard to work on a project that you started on Linux. If you run rake db:create and see an error like this: Couldn''t create database for {"reconnect"=>false, "encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql",
2006 Apr 04
0
Parsing a SQL file directly intoactiverecord::executemethod - Not a vamp I swear
It doesn''t like SET commands, or #Comments, etc. Looks like no way = around this without using forgoing active record. I don''t really want = to do that at this point. --------------------------- Brian Corrigan --------------------------- -----Original Message----- From: rails-bounces@lists.rubyonrails.org = [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Brian
2011 May 20
2
Rails DB defaults to utf8 for mysql -- but unicode for postgresql
Hi, Creating a new Rails application with -d postgresql sets the encoding in the database.yml to unicode Creating a new Rails with -d mysql sets the encoding to utf8 Any ideas why this difference? I''ve been having problems with encoding due to localization, accents, json and what no. I thought I was using utf8 and not unicode. Would this have any impact? If this would be an issue?
2006 Jul 15
2
Database Config as DSL
In listening to this week''s Ruby on Rails Podcast the issue of YAML came up, and it got me thinking. Yes, YAML is very simple and cleanly defines both the database configuration and fixtures, but couldn''t the same thing be accomplished in Ruby? Jamis and others have encouraged the use of DSLs to simplify and clarify code. Since Django (whose author was on the podcast) uses
2013 May 01
3
PG gem behaves strange. It requires live DB connection to only generate a model. How to turn it off?
I used MySQL as a backend before. Now I had to move to PG since Heroku doesn''t have MySQL and forces everyone to use their Heroku-PG database. But PG virsion of Rails works diffidently. I cannot generate a model without PG server running: >> C:\ruby\Heroku\App>rails generate model Products >> >> C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-
2007 Oct 07
7
Ruby on Rails on WAMP
I am using WAMP(windows, Apache, mySQL and PHP) for my web development. So I have already MySQL and Apache working. Could any one tell me how to install Ruby on Rails on this environment? Can I just put ror in the root directory, www? A newbie needs your help. :-) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because
2006 Aug 03
5
Database configuration across developers!
Hi, I have what might be a silly question but is there any way to put some of the database configuration information into a separate file? For instance, in config/database.yml I have: developer_database: &developer_database adapter: mysql username: me password: something host: 127.0.0.1 development: <<: *developer_database database: foobar_development test: <<:
2009 Apr 02
3
Asterisk G729 codec...
Humm... should the list would be magic again? I have just intsalled, using the register, benchmark and downloared the correct codec to my asterisk installation, but I don't have the g729 command at my CLI... Any advice... Do I reboot? ;D
2000 Jun 14
4
need help with compiling openssh
hi, I'm trying to compile OpenSSH, latest version on my Linux box. I know that it requires openssl and I've installed the 0.9.5a and it's working just fine. Now when I'm trying to ./configure the openssh with the options ./configure --prefix=/usr/local/bin/openssh/ --without-pam --without-shadow --with-tcp-wrappers It's giving me checking for openssl directory... configure:
2016 Feb 03
2
include => parkedcalls but nonexistent context 'parkedcalls'
Humm, thanks for your reply But whats is the code in parkedcalls context. Please, can you give an example? Thanks very much. 2016-02-03 17:15 GMT-02:00, Richard Mudgett <rmudgett at digium.com>: > On Wed, Feb 3, 2016 at 1:05 PM, Vitor Mazuco <vitor.mazuco at gmail.com> > wrote: > >> Hi! >> >> I tried to use Parking Calls >> >> I use Asterisk
2019 Jul 24
5
[PATCH] mm/hmm: replace hmm_update with mmu_notifier_range
On Wed, Jul 24, 2019 at 09:05:53AM +0200, Christoph Hellwig wrote: > Looks good: > > Reviewed-by: Christoph Hellwig <hch at lst.de> > > One comment on a related cleanup: > > > list_for_each_entry(mirror, &hmm->mirrors, list) { > > int rc; > > > > - rc = mirror->ops->sync_cpu_device_pagetables(mirror, &update); > > +
2015 Dec 16
2
Help with CDR-Stats
Humm whats is the diferent? Em 16/12/2015 14:19, "Annus Fictus" <annusfictus at gmail.com> escreveu: > CDR-STATS is for reporting. > > A2Billing is for billing... > > Regards > > El 16/12/2015 a las 11:15, Vitor Mazuco escribi?: > >> Hi everyone! >> >> I'm trying to install CDR-Stats (cdr-stats.org), but it very difficult. >>
2006 Apr 12
3
Setting Codecs on the Fly
Does anyone know if it's possible to set the codecs for a number via an Asterisk command? Ie, yes you can set the codecs in sip.conf for a user, but I'd like to have a command that can set the same thing so that it can be done without having to change sip.conf. Essentially I want the user to be able to prefix a code to their dialled number to set their preferred codec for that call.
2015 Dec 30
2
URW Fonts Description in Installation and Administration Manual
On Wed, 30-12-2015, at 12:44, Dirk Eddelbuettel <edd at debian.org> wrote: > On 30 December 2015 at 05:00, Dario Strbenac wrote: > | Good day, > | > | In section A.2, the manual advises "Linux users will want the urw-fonts package". However, this package only seems to be available for RedHat Linux and Fedora Linux. What about for Debian or Ubuntu ? There is no
2016 Jan 05
2
Detected alarm on channel 3: Red Alarm
Humm, if I put a filter in this lines, maybe back? 2016-01-05 12:36 GMT-02:00, Ryan, Travis <RyanT at oscarwinski.com>: > >> -----Original Message----- >> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- >> bounces at lists.digium.com] On Behalf Of Vitor Mazuco >> Sent: Tuesday, January 05, 2016 9:21 AM >> To: Asterisk Users Mailing
2012 Jun 09
5
Build failure for isohybrid
Dear list, I have been trying to debug a build failure for a while in the utils directory on isohybrid which seems to be distro specific. On Fedora 17 64bit the build completes without problems, but under both Ubuntu 32/64bit 11.10 and 12.04 I get the following: tim at oxygen:/usr/src/git/syslinux/utils$ make gcc -O2 -luuid -o isohybrid isohybrid.o isohdpfx.o isohybrid.o: In function
2006 Apr 24
1
Samba Login Problem on Windows
Hi, I have a problem of using samba on a windows xp client. When i'll try to connect to the domain and create a machine account all works. But when i'm rebooting the system and try to logon there appears an error. log.smbd tells me the following error: sambatest has user sid S-1-5-21-............................(the dots are for the long code ;)) but group sid
2016 Feb 03
2
include => parkedcalls but nonexistent context 'parkedcalls'
Ah no, I'm asking what code I put inside of parkedcalls? This example works? [ramais] include => parkedcalls [parkedcalls] exten => 700,1,ParkedCall(701) exten => 702,1,ParkedCall(702) exten => 703,1,ParkedCall(703) exten => 704,1,ParkedCall(704) This exten works? 2016-02-03 17:27 GMT-02:00, Doug Lytle <support at drdos.info>: >>>> On Feb 3, 2016, at