Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Created December 7, 2015 04:48
Show Gist options
  • Select an option

  • Save YumaInaura/94cf162e6aa79e59b986 to your computer and use it in GitHub Desktop.

Select an option

Save YumaInaura/94cf162e6aa79e59b986 to your computer and use it in GitHub Desktop.
Rails | migration で t.timestamp が動かない? ref: http://qiita.com/Yinaura/items/705d3d26710a31d2a66e
class CreateExample < ActiveRecord::Migration
def change
create_table :example do |t|
t.string :requester
- t.timestamp
+ t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment