ROR 3, Ruby 1.9.2
Every time I use migration with add_index included, I get an "Invalid
date" error
I'm using windows 7 and Mysql2
Can anyone help?
Here's my code:
---------------------------------------------------------------------
class CreatePages < ActiveRecord::Migration
def self.up
create_table :pages do |t|
t.integer "subject_id"
# can also use: t.references :subject
t.string "name"
t.string "permalink"
t.integer "position"
t.boolean "visible", :default => false
t.timestamps
end
add_index("pages", "subject_id")
add-index("pages", "permalink")
end
def self.down
drop_table :pages
end
end
-----------------------------------------------------------
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.