class CreateBlockVersions < ActiveRecord::Migration def change create_table :block_versions do |t| t.integer :account_id t.boolean :active t.timestamps null: false end add_index :block_versions, :active add_index :block_versions, :account_id end end