Created
December 7, 2015 04:48
-
-
Save YumaInaura/94cf162e6aa79e59b986 to your computer and use it in GitHub Desktop.
Rails | migration で t.timestamp が動かない? ref: http://qiita.com/Yinaura/items/705d3d26710a31d2a66e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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