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: model_spec.rb
    path of file: ./repos/localtower/spec/lib/localtower/generators
    
    the code of the file until where you have to start completion: require 'spec_helper'

module Localtower
  module Generators
    describe Model do
      context 'model 1' do
        let(:expected_migration) do
          <<-TEXT_MULTILINE.strip_heredoc
          class CreatePosts < ActiveRecord::Migration[5.2]
            disable_ddl_transaction!

            def change
              create_table :posts do |t|
                t.string :title
                t.string :tags, array: true, default: [], null: false
   
    
            def change
              create_table :posts do |t|
                t.string :title
                t.string :tags, array: true, default: [], null: false
                t.text :content, null: false
                t.integer :likes_count, default: 0
                t.float :score
                t.jsonb :metadata, default: {}, null: false

                t.timestamps
              end
              add_index :posts, :title, unique: true
              add_index :posts, :tags, using: :gin, unique: true, algorithm: :concurrently
              add_index :posts, :content, using: :gist
              add_index :posts, :likes_count
              add_index :posts, :score
              add_index :posts, :metadata
            end