You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 20120508165529_create_tables.rb
    path of file: ./repos/devise-security/test/dummy/db/migrate
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class CreateTables < MIGRATION_CLASS
  def self.up # rubocop:disable Metrics/AbcSize
    create_table :users do |t|
      t.string :username
      t.string :facebook_
    
  def self.up # rubocop:disable Metrics/AbcSize
    create_table :users do |t|
      t.string :username
      t.string :facebook_token

      # session_limitable
      t.string :unique_session_id

      ## Database authenticatable
      t.string :email,              null: false, default: ''
      t.string :encrypted_password, null: false, default: ''

      t.datetime :password_changed_at

      t.datetime :current_sign_in_at
      t.datetime :last_sign_in_at
      t.string :current_sign_in_ip
      t.string :last_sign_in_ip
      t.integer :sign_in_count, default: 0
      t.integer :failed_attempts, default: 0
      t.timestamps null: false
    end
    add_index :users, :password_changed_at
    add_index :users, :email

    create_table :secure_users do |t|
      t.string :email
      t.string :encrypted_password, null: false, default: ''
      t.timestamps null: false
    end

    create_table :old_passwords do |t|
      t.string :encrypted_password, null: false
      t.string :password_salt
      t.string :password_archivable_type, null: false
      t.integer :password_archivable_id, null: false
      t.datetime :created_at
    end
    add_index :old_passwords, %i[password_archivable_type password_archivable_id], name: 'index_password_archivable'
  end