I need 'created_at' timestamp. What wrong with this code?

class CreatePosts < Sequel::Migration
  def up
    create_table :posts do
      plugin :timestamps, :update_on_create => true, :create
=> :created_on
      primary_key :id
      String :title
      Text :body
    end
  end

  def down
    drop_table :posts
  end
end

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en.

Reply via email to