Displaying 20 results from an estimated 70000 matches similar to: "Plugin dependencies/migration/versioning support?"
2006 Mar 22
1
plugin version dependencies?
I posted a message a while ago about a problem with the Exception Notifier
Plugin for Rails.
I think the problem is a recent change to the plugin which requires rails
1.1 -- respond_to. The plugin was updated just a few days ago...
Which made me wonder about versioning and dependencies of plugins. Is there
a mechanism of versioning plugins? Is there a way to discover dependencies?
Thanks,
2006 Feb 08
2
Adding routes via a plugin...
I have a plugin that I am working on that will as part of its distribution
contain a controller. I would like to be able to add a route for it in the
plugin''s init.rb so that when the plugin is loaded, the route will
automatically be registered without having to force the user to edit
routes.rb or even make a rake task to do it for them.
I saw the following code in one of the SVN
2006 Jun 13
2
Migration or model first
I sort of asked this the other day but with no replies. I''m new to rails
btw.
Question: Is there a preferred way to create migrations ? What I''ve noticed
is if I create a model first , it sets up the skelton of the migration.
If I create a migration file and then do the model it attempt to create a
migration file and not overide the one already in place. It seems to make
sense
2006 Feb 21
2
Authorization Plugin for Rails
I''ve posted a lengthy description of an authorization plugin for Rails on my
blog:
http://www.billkatz.com/authorization
It describes a proposed DSL for authorization, a pattern for use that
describes conventions, and a reference implementation that lets you test the
some of the ideas. I hope that some subset of Rails programmers gravitate
toward a common DSL for authorization, which
2006 May 10
6
Migrations don''t really support transactions
I read in various places that although migrations aren''t transactional, all
you need to do is wrap you migration method in "ActiveRecord::
Base.connection.transaction do"
to make the self.up or self.down transactional. In my experience (Rails +
PostgreSQL), this doesn''t work very well. If my migration hits an
exception, any tables that were touched remain modified.
2006 Jul 12
0
migrations passing version number.
One of the nice things about migrations is that you can selectively roll
your changes back and forward. But, sometimes it doesn''t work as expected.
In my current project I rolled back to VERSION=0. Then applied on migration
at a time and rolled it back to make sure that I had coded everything
correctly. Tthe first 3 went well. But, when I attempted to apply
VERSION=4. Rake attempted
2006 Apr 04
2
loading data with migrations
Hello,
I''m just taking a look at migrations, seems like a fantastic way to maintain
the database. I am wonder if there is a way to maintain what I''ll call
"reference data" along with the migrations. A lot of times in apps your
have tables that have pretty static data, often used to generate select
lists. Is there a way to insert the reference data into these tables
2006 Jun 29
9
Handling multiple developers making migrations and using svn
Hey all,
I''ve run into an interesting scenario that I think some of you might have
some suggestions on. I am currently working on a RoR project and we are
making full use of the migrations. We are also using a subversion repository
for our source control. Now, the problem....
We are both making migrations and checking them into SVN. So, if in our
checkout we have migrations up to 10 and
2006 Jul 10
3
Problem with migrations
I am trying to start my first project after going though the Depot
application in prog prog''s book. For some reason one of my migrations keeps
bombing. I just try to setup a couple tables with some default information
and even with changing the name of the second table and other minor tweaks
it just does not work. I am connected to the db, the first table does get
filled out.
Any help
2007 Aug 19
0
Sentry plugin causing migration to fail
I have an application that uses the Sentry plug-in. I am using Sentry
on my Users model for encrypting passwords. It works fine inside the
application, but whenever I call User.create in my migration (in order
to set-up a default user) I get the following error when I run the
migrations:
rake aborted!
undefined method `symmetrically_encrypts'' for User:Class
Has anyone experienced this
2006 Jun 28
5
Funky character display in rails / mysql
I''m getting complaints from one of my customers that characters in their
text are getting mangled. This happens when they paste data into my
textboxes in rails from MS word in particluar.
Quotes are turning into question marks, etc.
Anyone have a fix / workaround for this?
--
seth at subimage interactive
http://www.subimage.com/sublog/
-------------- next part --------------
An HTML
2006 Feb 03
3
how to maintain data while using migration
hi all
started using migration , gr8 stuff
but how can i maintain old data , or import it alongwith schema with same easiness,
as in migration we only import schema ?
thanks
rohit
---------------------------------
Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 15
6
Subversion and migrations confusion
I''ve spent the last several months learning RoR and building my first app. I''ve not used migrations yet and honestly don''t understand them much, and have not had my app under version control. I''ve decided it''s time (I know, some will say way past time ;-) ) to put the app under version control. I''ll be using Subversion and have begun working
2006 Apr 06
2
Strange Error at the end of a succesful Migration
HI all,
I''ve got a migration that creates a few new tables and populates a bunch of
data into those tables from existing models.
It works great. As expected. Tables are created. Relationships are made.
Everything comes out fine as far as the data goes.
But for some reason the migration task ends with this error:
rake aborted!
negative argument
I''ve liberally sprinkled my
2006 Aug 05
5
rake migrate error: nil.first
My migrations were working fine until today. I dropped and re-created the
database.But, when I go to apply my migrations, rake migrate aborts with
this error.
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.first
Any idea what might be wrong? The migrations look right. It''s talking to
the
2006 Feb 15
1
Per Database Migrations
Is there away to have parts of a migration file only work with a specific database. For example I am inserting some data into a table with:
execute "INSERT INTO demo_lists(position, name, updated_at, created_at) VALUES (1, 1, ''scott'', CURDATE(), CURDATE());"
Of course the curdate() function may only be available on mysql. So can we some how determine which
2006 Jun 19
1
AWDwR2: Loading data in migrations
The new chapter in Agile Web Development with Rails talks about using
migrations to load data from fixtures. This is a great idea, I''ve wanted to
do this. This allows you a good way to create sample data that you can use
during development, testing or demoing of an application. My question is
how do you keep it separated from the real data? For example, say you have
a User and Account
2006 Jul 26
0
Generation SQL from Migrations
Anyone here able to generate the DDL SQL for performing migrations w/
out actually modifying the DB schema? As part of our process, we''d
like to be able to write the migrations and produce the DDL and then
have our data services folks verify and make changes according to
naming conventions, etc.
Aside from grabbing the SQL migration log following a "live"
migration - I
2006 Aug 17
3
Migrations for migrating data across databases - is it possible?
Hi All
I am trying to understand if I can use migrations to migrate data under the
following conditions
1. Across 2 different databases (Oracle/DB2) with same schemas.
2. Across 2 different databases (Oracle/DB2) with different schemas.
I am trying to avoid writing DBI/OCI8 scripts.
Can somone please shed some light if this is even possible?
thanks
-daya
-------------- next part
2006 Mar 12
5
AR - Migrations - how to use a varchar as primary key instead of int ?
Hi
I''d like to have a varchar primary key named id instead of the default int
id. Does anyone knows how to specify this from migrations ?
Should I also specify something in the model class ?
thanks!
Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060312/797bca4b/attachment.html