Displaying 6 results from an estimated 6 matches for "createposts".
2007 Nov 12
7
schema_info always wants to be 3, even when set to 7
Hi all,
I''m having a very odd problem with db:migrate. I''m using Rails 1.2.5
on Windows XP SP2 and Ruby 1.8.6
I have seven migrations. If I run them with an empty database, it
runs the first three, then halts. When I look in schema_info, the
version is 3.
If I run db:migrate VERSION=7, then it runs through the remaining 4
migrations, and the version is 7 in the DB.
2006 Apr 01
3
Gracefully degrading Ajax AND Drying up actions
Still a semi-newbie, but so far I''ve managed to solve most things with a
bit of help from the Agile book, some googling around, and a bit of
trial-and-error, but I''m really stuck with this one (very much an Ajax
newbie):
I know how to gracefully degrade an AJAX newpost type call so it can
appear inline or (for those without JS support) go to a new page (put an
":href
2008 Apr 03
3
Branchable migrations -- A plugin to let you organize your migrations
...==============================
-- create_table(:replies)
-> 0.0032s
== 4 CreateReplies: migrated (0.0035s) ========================================
**************************************************
-- Executing migrations in branch2...
**************************************************
== 5 CreatePosts: migrating ===================================================
-- create_table(:posts)
-> 0.0032s
== 5 CreatePosts: migrated (0.0035s) ==========================================
And your schema_info...
version branch
1 branch2
2 branch1
2 root
There are...
2006 Sep 14
0
Lost default value of timestamp field.
I''m using postgresql, I found some problems when running unittest.
file: db/migrate/001_create_post.rb:
--------------------------------------------------------
class CreatePosts < ActiveRecord::Migration
def self.up
execute <<-EOS
create table posts (
id serial not null primary key,
title varchar(255),
created_at timestamp not null default current_timestamp
);
EOS
end
def self.down
drop_table :posts
e...
2006 Sep 05
0
rake craziness with Migrate as a dependency
...omments: migrated (0.0900s)
=========================================
== NoProductSkuRelationship: migrating
========================================
-- remove_column(:skus, "product_id")
-> 0.2110s
== NoProductSkuRelationship: migrated (0.2110s)
===============================
== CreatePosts: migrating
=====================================================
-- create_table(:posts)
-> 0.0900s
== CreatePosts: migrated (0.0900s)
============================================
== CreateEcards: migrating
====================================================
-- create_table(:ecards)
->...
2010 Mar 04
25
how to share variables in data migrations (up/down)
hi there,
How do we share variables in a given data migration?
For example,
the code below fails to work because "statuses" don''t seem to be in
scope for both up and down.
class AddDefaultValuesToStatuses < ActiveRecord::Migration
statuses = [
{
''details'' => ''details'',
},
{