Displaying 6 results from an estimated 6 matches for "createpost".
Did you mean:
create_post
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
...st one action for AJAX and none AJAX requests
(request..xml_http_request?).
What I can''t work out to do is how to have it so the processing of the
AJAX a form info is done in the same action as the original AJAX call
(they are both posts, right?), and it''s forcing me to have a createpost
action, just for the AJAX route.
If I could work this out, I could then have one neat action that wrapped
the whole thing up in a nice DRY, gracefully degrading way.
Can anyone help?
Thanks
Chris T
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 ar...
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...
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)
-&g...
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'',
},
{