This project is archived and is in readonly mode.

#828 ✓resolved
Patrick Reagan

Specifying timestamps in a migration does not honor options

Reported by Patrick Reagan | August 14th, 2008 @ 02:46 PM | in 2.x

Currently, this will fail in a migration


    create_table :accounts do |accounts_table|
      accounts_table.with_options :null => false do |t|
        t.string :name
        t.timestamps
      end
    end

The t.timestamps method should be updated to take even just a subset of options (like :null => false as above). This patch (attached) will allow you to specify additional options using .with_options as above, or even directly:


    create_table :passwords do |t|
      t.timestamps :null => false
    end

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages