Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

rake schema:migration

#4

What steps will reproduce the problem?

1. waves foo

2. cd foo

3. Configure default.rb (as suggested by the tutorial)

4. rake schema:migration name=initial_schema

i write the code to initial_schema by(copy past) mistake

def up

def up

create_table :groups do

primary_key :id

text :name

timestamp :created_on

end

end

end

I did not get any error and version goes to 1 (schema_info)

even after modifing the migration i am not able to run it without

reverting version to 0

Reported by dan (at zeraweb) · May 1st, 2008 @ 02:52 PM

State: invalid
Milestone: 0.7.5 - Janus
Assigned to: Matthew King Matthew King

Activity

  1. Matthew King
    Matthew King
    def up
    def up
       create_table :groups do
          primary_key :id
          text :name
          timestamp :created_on
        end 
      end
    end
    

    June 1st, 2008 @ 02:44 PM

  2. Matthew King
    Matthew King

    Above code is the formatted version of the original bug report.

    June 1st, 2008 @ 02:45 PM

  3. Matthew King
    Matthew King
    • Assigned user changed from dan (at zeraweb) to Matthew King

    June 9th, 2008 @ 02:28 PM

  4. Matthew King
    Matthew King
    • Milestone set to 0.7.5 - Janus

    June 12th, 2008 @ 07:35 AM

  5. Matthew King
    Matthew King
    • State changed from new to invalid

    Our code just passes the migration directory to Sequel::Migrator.apply.

    Closing.

    June 14th, 2008 @ 08:18 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.