# -*- coding: utf-8 -*-
class CreateUsersWithoutComment < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :login
      t.string :email
      t.string :crypted_password
      t.string :password_salt
      t.string :persistence_token
      t.string :single_access_token
      t.string :perishable_token
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end

# -*- coding: utf-8 -*-
class CreateUsersWithoutComment < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :login
      t.string :email
      t.string :crypted_password
      t.string :password_salt
      t.string :persistence_token
      t.string :single_access_token
      t.string :perishable_token
      t.timestamps null: false
    end
  end

  def self.down
    drop_table :users
  end
end

Add option to stop warning for Rails 5 like this:
Add option to stop warning for Rails 5 like this:

DEPRECATION WARNING: `#timestamp` was called without specifying an
option for `null`. In Rails 5, this behavior will change to `null:
false`. You should manually specify `null: true` to prevent the behavior
of your existing migrations from changing. (called from block in up at
/Users/takeshi/workspace/schema_comments/spec/migrations/008_create_users_without_comment.rb:12)
