Displaying 20 results from an estimated 60000 matches similar to: "declaring migration bankruptcy"
2013 Jul 11
1
Do I Edit the Migration Too to Show the Belongs To
Hi Everyone,
Do I edit the corresponding migration also to show the belongs_to (and the
has_many)? I have a many to many relationship where I am using the
"has_many :through" association. When I place in the individual classes the
''has_many :through'' and the ''belongs_to'' associations, do I also edit the
corresponding migrations to reflect those
2010 Feb 12
1
Why does config.gem mess up migration?
I was working this morning, trying to clean up my project and I did
something that sent migrations to hell-in-a-hand-basket.
I tried to run rake db:migrate --trace I got the following error msg:
(in /Users/richardmartin/NetBeansProjects/ReTrace)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Mysql::Error: Table
2013 Mar 03
2
Is there a way to prevent an accidental migration from newer version of app to older one?
Imagine a rails app that has two versions that developers need to support:
1.0 and 2.0. There are 2 database schemas: app-1, app-2.
After fixing a bunch of very important bugs in production (1.0), some
junior developer named Bob switches the branch to 2.0 to implement a few
features but somehow gets his app connected to the schema app-1 and does
rake db:migrate
As I understand, in that case
2010 May 18
4
When I do a migration, the changes are make in the test db
When I do a migration, the changes are make in the test database. Does
anyone know the reason?
In the config/environment.rb file, I have this: ENV[''RAILS_ENV''] ||=
''production''
And in the db/ folder, it creates a file named test.sqlite3
When I did the migrations, RoR used the test database, but when I want
to make something in the application, the migrations
2012 Jan 10
5
6 fundamental migration problems for beginners
## Hi ##
I have 6 simple and fundamental Problem in RoR migration and although I
googled it and read many article about it and research it for a week , I
didn''t understand it. please help me for these problems :
----------
1 - When I create a model (for example "rails generate model
Football_League") , I see in db/migration a "create_football_leagues.rb"
. I want
2015 Jul 29
1
[PATCH 0/4] enable migration of driver pages
On Mon, Jul 13, 2015 at 05:35:15PM +0900, Gioh Kim wrote:
> My ARM-based platform occured severe fragmentation problem after long-term
> (several days) test. Sometimes even order-3 page allocation failed. It has
> memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic processing
> and 20~30 memory is reserved for zram.
>
The primary motivation of this series is to
2010 Aug 22
1
rails3: t.index in migrations not working anymore
Hello,
I''m playing around with Rails3 and trying to upgrade one of my
applications to Rails 3.0.0.rc and I get an error which should be still
working.
Migration:
t.index :name
When I execute rake:
rake aborted!
An error has occurred, all later migrations canceled:
undefined method `index'' for
#<ActiveRecord::ConnectionAdapters::TableDefinition:0x4b2b6b0>
Does some one
2011 Dec 27
0
DataMatrix barcode generator/reader
Hello,
I have an existing legacy app written in .NET that will be rewritten
with Rails. One of the key components of the App is to generate and
read datamatrix barcodes from a PDF. I''ve looked online and message
posts but haven''t see anything worthwhile for reading / generting
datamatrix barcodes. Any recommendations for this?
Todd
--
You received this message because you are
2014 Jul 17
2
[LLVMdev] [RFC] Invariants in LLVM
On 07/17/2014 01:51 PM, Chandler Carruth wrote:
>
>
> 2. Would adding a canonicalization of if(c) { unreachable } to
> llvm.invariant(c) would be worthwhile?
>
>
> There was a long and painful attempt to implement invariants based on
> the branch-to-unreachable pattern. It didn't work. I don't expect
> these patterns to show up often organically and to
2019 Jul 03
0
Re: [libnbd] How close are we to declaring a stable API?
On 6/29/19 5:25 AM, Richard W.M. Jones wrote:
> As the subject says, how close are we to being able to declare a
> stable API for libnbd?
>
> I believe these are the main topics:
>
> * Do we need to have an extra thread for writing? I'm unclear about
> whether b92392b717 (which allows the state machine to break during
> reply processing) means we definitely
2010 Aug 08
0
registerable method undefined in Devise migration (was Re: Re: No route matches)
On 8 August 2010 23:39, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
> I tried to make the application from scratch again, and
> notices that I get the following when I run: $ rake db:migrate
>
> (in /Users/abder/Desktop/Rails/auth)
> == DeviseCreateUsers: migrating
> ==============================================
> -- create_table(:users)
2010 Aug 23
1
Cannot migrate database, strange error!
Im using restful authentication, and i changed the username model from
login to username. The error is Mysql::Error: Key column ''login'' doesn''t
exist in table: CREATE UNIQUE INDEX `index_users_on_login` Heres the
trace:
DEPRECATION WARNING: Rake tasks in
vendor/plugins/restful-authentication/tasks are deprecated. Use
lib/tasks instead. (called from
2011 Mar 02
4
migrations in rails?
Are migrations used only when you''re making changes to a database? Does
it just allow the developer to avoid using raw SQL when working with
databases?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2013 Jun 21
1
How to create Migration from Mysql DB with bigint type of Mysql
I have to create Migration file form Mysql DB
But I want type of Migration equivalent with Mysql DB
(example : in Mysql with type Bigint and in Migration will have type
Int(20) or Bigint)
Could You help me solve this Problem?
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2010 Mar 18
3
rake db:migrate -> uninitialized constant
Hi--
I''m trying to do a first migration (2.3.5). I generated a model
"Video", but when I try to migrate I get "uninitialized constant
Videos". Why is it trying to find a plural class name?
Here''s more complete output:
trans@logisys:models$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
**
2010 Aug 19
6
Depreciation warning when running a db migrate!
Hey,
Whenever i try and run a db migrate i get this error:
DEPRECATION WARNING: Rake tasks in vendor/plugins/livevalidation/tasks
and vendor/plugins/restful-authentication/tasks are deprecated. Use
lib/tasks instead. (called from
/Users/Zack/.gem/ruby/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)
I tried moving the different plugins task rake files to lib/tasks and i
got no error but the database
2011 Nov 02
3
activeldap and migrations
Stupid activeldap is messing with my mind ;-)
rails (3.1.1
activeldap (3.1.0)
rubygems-update (1.4.2)
I have activerecord (database.yml/postgresql) and activeldap (ldap.yml) as configured sources for my models.
I want to add some more things to my models but activeldap is killing my attempts to create migrations...
cwhite@nxpc:~/tti_framework$ rails generate migration AddSettings
error
2013 Oct 29
3
rake db:migrate debacle
Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails
app. See output below. Problem arose when I ran the rake db:migrate
command. I also tried the ''rake db:migrate RAILS_ENV=development'' command
which may be obvious. Any ideas on how to fix this?
Many thanks!!
$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]
2010 Apr 24
1
Rails (3) Engines and Plugins - How to mix application and vendor code?
I''m trying to create several large applications that share 60-80
percent of their functionality. I''d like to find some way to abstract
the common functionality into a gem, plugin, or engine which I can
then deploy as many times as needed for each application. The catch is
each app will definitely need that 20% extra functionality and it may
include changes or enhancements to
2011 Aug 19
0
Rails 3.1 reversible migrations and change_table
Hi,
is the following migration really supposed to be irreversible?
class AddColumnsToUsers < ActiveRecord::Migration
def change
change_table :users do |t|
t.integer :foo
t.integer :bar
end
end
end
I''m using Rails 3.1 RC6 and when trying to redo this migration I''m
getting ActiveRecord::IrreversibleMigration error.
Cheers,
Szymon
--
You received