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