similar to: Railsy way to Export Database Schema?

Displaying 20 results from an estimated 2000 matches similar to: "Railsy way to Export Database Schema?"

2007 Oct 14
5
Ruby/Informix 0.6.1 released
This is a maintenance release to fix a bug triggered while working with Ruby on Rails and Informix. Web site: http://ruby-informix.rubyforge.org Changelog: 0.6.1 13/10/2007 ------------------ Bugs fixed: * Database#columns was returning an empty array from within the Informix ActiveRecord adapter (ActiveRecord::ConnectionAdapters::InformixAdapter#columns) if
2005 Mar 06
2
Using url_for in ActionMailer templates
Hi All I am just adding some basic e-mail notices to my Rails app using ActionMailer, and have one small issue. I want to provide a confirmation URL to users who sign up for an account. I can obviously just hardcode the URL and append the confirmation code to it, but I''d much rather be able to use something like: url_for(:controller => ''authentication'', :action
2005 Jan 22
6
Still having config problems
Hi, Having completely failed to sort out my apache 500 error, I thought I would work through the "Rolling with Ruby on Rails" tutorial at http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html I am using webrick, not apache - and still getting 500 errors. When I get to page 4 where http://127.0.0.1:3000/recipe/new should give me a data entry screen, instead I get...
2006 Nov 14
11
RESTful mixin, mixin repo?
Hi, I just put together a little mixin to provide pseudo-RESTful services in camping apps. Basically, it looks for a hidden _verb field in form posts, and sets the @method to the supplied value (e.g. put or delete - which browsers don''t support). This lets you define put and delete methods in your controllers. Groovy. Code: http://pastie.caboo.se/22613 Is there any permanent repo of
2006 Nov 02
4
application controller security
Shouldn''t everything in the application controller be protected by default? I just realized that my app can be called like this: www.myapp.com/application/method and it actually tries to run that method inside my application controller. Is everyone else just adding "protected" at the top? Thanks, Chad --~--~---------~--~----~------------~-------~--~----~ You received this
2005 Nov 19
14
FULLTEXT search in MySQL on rails
I tried adding a FULLTEXT search index to a table of mine in MySQL, only to discover that the InnoDB table format doesn''t seem to support this feature. Switching to the MyISAM table type seemed to work, but I seem to have some recollection that ActiveRecord transactions aren''t fully atomic on MyISAM tables. Is this true or am I just remembering wrong? If so, does anyone have
2005 Mar 09
10
mysql vs postgres
I''ve used mysql for quite some time now. Other than crashing when the partition gets full, I''ve had no problems with it. But I''ve heard great things about postgres and have seen some people say it''s much superior to mysql. So, with a Rails application, is there any reason why I would want to learn/use another DB besides mysql? Any pragmatic benefits?
2009 Jun 24
3
ActiveResource:: HttpMock
I''m trying to set up testing on my ActiveResource project. The HttpMock appears to be what I want, but whenever I use the code in the "documentation", I get the error NameError: uninitialized constant ActiveResource::HttpMock Is there something I need to do to enable HttpMock testing? Thanks, Tom
2005 Oct 05
2
customer defined sort order
I have a category list which the customer wants administratively to define the sort order, instead of alphabetical or whatever. The obvious approach seems to be to put a sort_order int on the record and use this as the presentation sort order. Then to shift the item up in the sort order to swap the current and the prevous item in the sort_order. Does this seem like a sensible approach, or is
2007 Dec 01
3
Rails 2 problem with compute_public_path
I''m trying to migrate to Rails 2, but keep getting these errors all over the place: ActionView::TemplateError: wrong number of arguments (2 for 3) On line #61 of users/new.rhtml 58: <% if @captcha_error -%><div class="fieldWithErrors">< % end -%> 59: <table class="signup"><tr> 60: <td
2006 Sep 01
2
Include ActiveResource
Hello, I want to give ActiveResource a spin. I have all the code checked out from SVN in vendor/rails (yes, including ActiveResource). I''m trying to make sure it gets loaded. I did this in environment.rb: config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/activeresource/lib ) Unfortunately I still can''t use it. I have an ActiveResource derived model, Address: class
2007 Mar 05
2
SOLVED:Re: How to select postgres for usage instead postgres-pr?
Figured it out chaps..not to worry!!! -- Regards Andrew On 05/03/07, Andrew Madu <andrewmadu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > further to my additional email the gem build for postgres did not work, so > I downloaded and copied postgres.so into: > > C:\pgRails\lib\ruby\site_ruby\1.8\i386-msvcrt > > Again, how do I point rails to using this
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all. I am using PostgreSQL in my current project and I have couple of questions on this topic. Previously I have used 3 databases for project. i.e. megaproject_development, megaproject_test and megaproject_development. But I don''t like this variant because of ''rake dump_db_structure'' writes a lot of PostgreSQL specific data for structure file (operators, functions,
2016 Feb 04
2
sql schema without alembic
hi, is there way to get SQL schema for Asterisk 13.7.0 without alembic? thanks -- --------------------------------------- Marek Cervenka =======================================
2016 Feb 08
2
sql schema without alembic
Dne 4.2.2016 v 12:17 A J Stiles napsal(a): > On Thursday 04 Feb 2016, Marek ?ervenka wrote: >> hi, >> >> is there way to get SQL schema for Asterisk 13.7.0 without alembic? >> thanks > Assuming you already have Asterisk up and running, you can just use > > $ mysqldump -d -uroot DATABASE TABLE1 TABLE2 TABLE3 ... > > will print (on STDOUT, so you can just
2008 Oct 01
1
Rsync efficiency on SQL dump files
G'day, I'm backing up production MySQL database servers. The tables are almost all MyISAM. My plan is to use MySQL binary logging and then rsync the binary logs offsite hourly. The binary log files are only appended to, with new queries logged at the end of the file. So I'm assuming the rsync algorithm will be highly effective at reducing the bandwith required to transfer these
2005 Apr 26
10
Cannot force WeBRICK into submission (UTF-8)
Hello everyone! Pushing my new rails project I stumbled upon some weird problem. I cannot force WeBRICK to show me my MySQL records in UTF-8. All I recieve into the object (instead of russian letters) are question marks (a la ?????? style). I am running MySQL 4.1 (the one with switchable charsets) and a binary Ruby extension for it, all on OSX. To me it looks like MySQL never recieves what I
2010 Aug 14
6
best ways to do mysql backup
we have multiple servers approx 10 and each has about 100 GB of data in the /var/lib/mysql dir , excluding tar , mysqldump and replication how do we take backup for these databases on to a remote machine and store them datewise , ( the remote machine is a 2TB HDD ) currently tar is not feasible as the data is too huge and the same goes with mysqldump suggestion will be of great help --
2017 Dec 12
2
[OT] Overview of Homer installation on Debian Stretch
Hello, I've discovered homer-api-postgresql and homer-api-mysql packages in Stretch repo. I'm not sure I understand how Homer-API relates to Homer. My questions are: 1. What is the simplest available installation option to install Homer on a dedicated box, this dedicated box gathering data from one or several Asterisk systems on the same LAN ? 2. Is it possible to centralize data on a
2005 Mar 03
7
Another question about the tutorial
Hello After upgrading to ruby 1.8.2, finally got rails to install properly. Now, following the tutorial, I found a couple of things: First, apparently rails tries to establish local mysql connections using "/tmp/mysql.sock" which mandrake does not use. In mandrake 10.1, this file is located at "/var/lib/mysql/mysql.sock". The solution is to create a simlink